fetaUI
GitHub

Dropdown

Picks one option from a short list of one line text or emoji labels.

FreeWeb and MobileMotion

Preview

npx shadcn add @fetaui/dropdown
Playground
Text
Emoji
Invalid
Pick a category to continue
Disabled
Locked
Content
Icons animation
Motion

Installation

Terminal· bash
 npx shadcn add @fetaui/dropdown

Accessibility

  • Built from Field and Select, so the label, error and combobox roles come with it.
  • Emoji are decorative. The text label is what is read out.

Motion

  • The list grows out of the trigger in 180 ms and the highlight glides.
  • The chosen row gains a check.
  • With reduced motion, the list appears in place.

Responsive behavior

  • Full width of its container, with Mobile sizes from Input.

Performance

  • A thin wrapper with no state of its own. Field and Select do the work.

Note for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Import Dropdown from @/components/fetaui/dropdown after installing it. label and options are required.
  • An option can carry emoji, shown in a 24 px tile. error shows under the field.
  • disabled shows lockedLabel beside the label, which defaults to Locked.
  • Composes Field and Select. Use Select directly when you need icons or the pill trigger.

Related