Skip to content

Dropdown

Terminal window
npx skeci-ui add dropdown
import { Dropdown } from '@/components/ui/dropdown';
const items = [
{ label: 'Profile', onClick: () => {} },
{ label: 'Settings', onClick: () => {} },
{ label: 'Logout', onClick: () => {} },
];
<Dropdown label="Menu" items={items} />

Sizes

Rounded Corners

PropTypeDefaultDescription
labelstring(required)The text label for the dropdown button.
items{ label: string; onClick?: () => void }[](required)The list of items to display in the menu.
size'sm' | 'md' | 'lg''md'The size of the dropdown button.
rounded'none' | 'sm' | 'md' | 'lg''none'The border radius of the dropdown button and menu.