Skip to content

Commit

Permalink
chore: primefaces#7042 Add additional doc for styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gcko committed Aug 21, 2024
1 parent 2bc9397 commit 8d6e24f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions components/doc/iconfield/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ const Tailwind = {
})
})
},
// For each input wrapped with IconField you will need to add styling.
// The following is an example for InputText
inputtext: {
root: ({ props, context }) => ({
className: classNames(
// Extend the root stylings with the following:
{
'pl-8': context.iconPosition === 'left',
'pr-8': props.iconPosition === 'right'
}
)
})
},
}
`
};
Expand Down

0 comments on commit 8d6e24f

Please sign in to comment.