Skip to content

How to expand select dropdown width? #1983

Discussion options

You must be logged in to vote

Hello! You can add a width class to the data-te-class-dropdown attribute. For example add w-[500px] class:

<select
    ...
data-te-class-dropdown="w-[500px] relative outline-none min-w-[100px] m-0 scale-[0.8] opacity-0 bg-white shadow-[0_2px_5px_0_rgba(0,0,0,0.16),_0_2px_10px_0_rgba(0,0,0,0.12)] transition duration-200 motion-reduce:transition-none data-[te-select-open]:scale-100 data-[te-select-open]:opacity-100 dark:bg-zinc-700"
    ....

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anwarenrique
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
2 participants