Dropdown

Menu-style dropdown with proximity hover and animated backgrounds.

Installation

npx shadcn@latest add https://www.fluidfunctionalism.com/r/dropdown.json

Basic

Groups

API Reference — Dropdown

PropTypeDefaultDescription
checkedIndexnumberIndex of the currently checked item.
childrenReactNodeMenuItem children.

API Reference — MenuItem

PropTypeDefaultDescription
iconLucideIconIcon displayed in the menu item.
labelstringText label for the menu item.
indexnumberPosition index within the dropdown.
checkedbooleanfalseWhether this item is checked.
onSelect() => voidCalled when this item is selected.

API Reference — DropdownLabel

PropTypeDefaultDescription
childrenReactNodeLabel text content.

API Reference — DropdownSeparator

PropTypeDefaultDescription
classNamestringAdditional CSS classes.