Skip to content

Can I use tailwind to style the input ? #149

Closed Answered by goveo
GoshaOlegovich asked this question in Q&A
Discussion options

You must be logged in to vote

@GoshaOlegovich Yes, you can use the provided className props:

<PhoneInput
  className=""
  inputProps={{
    className: '',
  }}
  countrySelectorStyleProps={{
    className: '',
    flagClassName: '',
    buttonClassName: '',
    buttonContentWrapperClassName: '',
    dropdownArrowClassName: '',
    dropdownStyleProps: {
      className: '',
      listItemClassName: '',
      listItemFlagClassName: '',
      listItemDialCodeClassName: '',
      listItemCountryNameClassName: '',
      preferredListDividerClassName: '',
    },
  }}
  dialCodePreviewStyleProps={{
    className: '',
  }}
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jpvalery
Comment options

Answer selected by goveo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #147 on January 24, 2024 22:05.