Skip to content

Cannot style select input #1981

Oct 4, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi! When passing options and classes as a data attributes remember to change from camelCase to kebab-case

To make the border rounded-full I changed few things:

  • notchLeading: instead of rounded-l-[0.25rem] i used rounded-l-full / changed w-2 to !w-6
  • notchTrailing: instead of rounded-r-[0.25rem] i used rounded-r-full
  • selectLabel: added !ml-4 class
    <select data-te-select-init multiple 
      data-te-select-all="false"
      data-te-class-select-label="!ml-4 pointer-events-none absolute top-0 left-3 mb-0 max-w-[90%] origin-[0_0] truncate text-gray-500 transition-all duration-200 ease-out peer-focus:scale-[0.8] peer-focus:text-primary peer-data-[te-input-state-active]:scale-[0.8] motion-…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@anwarenrique
Comment options

@RabbiIslamRony
Comment options

Answer selected by anwarenrique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants