mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import {
|
|
Button,
|
|
DropdownMenu,
|
|
DropdownMenuCheckboxItem,
|
|
DropdownMenuContent,
|
|
DropdownMenuGroup,
|
|
DropdownMenuLabel,
|
|
DropdownMenuTrigger,
|
|
Icon,
|
|
Text,
|
|
} from "@lcui/react";
|
|
|
|
export default function Example() {
|
|
return (
|
|
<DropdownMenu>
|
|
<DropdownMenuTrigger>
|
|
<Button>Notifications</Button>
|
|
</DropdownMenuTrigger>
|
|
<DropdownMenuContent className="w-56">
|
|
<DropdownMenuGroup>
|
|
<DropdownMenuLabel>Notification Preferences</DropdownMenuLabel>
|
|
<DropdownMenuCheckboxItem checked>
|
|
<Icon name="mail" />
|
|
<Text>Email notifications</Text>
|
|
</DropdownMenuCheckboxItem>
|
|
<DropdownMenuCheckboxItem>
|
|
<Icon name="chat" />
|
|
<Text>SMS notifications</Text>
|
|
</DropdownMenuCheckboxItem>
|
|
<DropdownMenuCheckboxItem checked>
|
|
<Icon name="alert" />
|
|
<Text>Push notifications</Text>
|
|
</DropdownMenuCheckboxItem>
|
|
</DropdownMenuGroup>
|
|
</DropdownMenuContent>
|
|
</DropdownMenu>
|
|
);
|
|
}
|