Skip to main content
Version: Next

Dropdown

Overview​

The Dropdown component provides a flexible and customizable way to create dropdown menus with various styling options, animations, and sizing variants. Built with Radix UI and Framer Motion, it offers smooth animations and accessible functionality out of the box.

Preview​

Installation​

npx @mindfiredigital/ignix-ui add dropdown

Usage​

Import the components:

import { Dropdown, DropdownItem } from './components/ui';

Basic Usage​

function BasicDropdown() {
return (
<Dropdown trigger={<Button>Click me</Button>}>
<DropdownItem>Option 1</DropdownItem>
<DropdownItem>Option 2</DropdownItem>
<DropdownItem>Option 3</DropdownItem>
</Dropdown>
);
}

Variants​