Import
Usage
Props
The Dropdown component extends all standard HTML button attributes excepttype and accepts the following additional props:
The content to display inside the button.
Controls whether the chevron icon is rotated (indicating the dropdown is open).
When enabled, the chevron rotates on hover instead of only when
opened is true.Additional CSS classes to apply to the button element.
Behavior
- The component automatically applies the
lum-btnclass and renders as a button withtype="button" - The chevron icon rotates 180 degrees when
openedis true - When
hoveris enabled, the chevron rotates on hover with smooth transitions - Focus states also trigger the chevron rotation
- All transitions use
ease-outtiming with motion-safe preferences respected
Examples
The Dropdown component only handles the button UI and chevron animation. You’ll need to implement the actual dropdown panel separately and control its visibility using the same state that controls the
opened prop.