Skip to content
Forms

MorphSelect

A select box whose panel unfolds out of the button. A highlight glides between options, the tick draws itself, and arrows, Home / End, Enter, Esc and type-to-find all work.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
options{ value, label, hint?, disabled? }[]—Choices. hint = small text on the right.
labelstring—Field name above the box.
valuestring—Picked value (controlled).
defaultValuestring—Picked value at start (uncontrolled).
onChange(value: string) => void—Called when an option is picked.
placeholderstring"Choose…"Text when nothing is picked.
namestring—Form field name (adds a hidden input).
accentstring"#a78bfa"Highlight and tick colour.
classNamestring"w-full max-w-xs"Wrapper look.