DropdownMenuWithCheckboxesIcons() — ui Function Reference
Architecture documentation for the DropdownMenuWithCheckboxesIcons() function in dropdown-menu-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD b2e56e40_72c5_b67e_0d74_98f1c3d526f2["DropdownMenuWithCheckboxesIcons()"] 1f0e6dcd_ae10_5e0e_4435_9470dee69154["dropdown-menu-example.tsx"] b2e56e40_72c5_b67e_0d74_98f1c3d526f2 -->|defined in| 1f0e6dcd_ae10_5e0e_4435_9470dee69154 style b2e56e40_72c5_b67e_0d74_98f1c3d526f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/dropdown-menu-example.tsx lines 373–441
function DropdownMenuWithCheckboxesIcons() {
const [notifications, setNotifications] = React.useState({
email: true,
sms: false,
push: true,
})
return (
<Example title="Checkboxes with Icons">
<DropdownMenu>
<DropdownMenuTrigger
render={<Button variant="outline" className="w-fit" />}
>
Notifications
</DropdownMenuTrigger>
<DropdownMenuContent className="min-w-56">
<DropdownMenuGroup>
<DropdownMenuLabel>Notification Preferences</DropdownMenuLabel>
<DropdownMenuCheckboxItem
checked={notifications.email}
onCheckedChange={(checked) =>
setNotifications({ ...notifications, email: checked === true })
}
>
<IconPlaceholder
lucide="MailIcon"
tabler="IconMail"
hugeicons="MailIcon"
phosphor="EnvelopeIcon"
remixicon="RiMailLine"
/>
Email notifications
</DropdownMenuCheckboxItem>
<DropdownMenuCheckboxItem
checked={notifications.sms}
onCheckedChange={(checked) =>
setNotifications({ ...notifications, sms: checked === true })
}
>
<IconPlaceholder
lucide="MessageSquareIcon"
tabler="IconMessage"
hugeicons="MessageIcon"
phosphor="ChatCircleIcon"
remixicon="RiChat1Line"
/>
SMS notifications
</DropdownMenuCheckboxItem>
<DropdownMenuCheckboxItem
checked={notifications.push}
onCheckedChange={(checked) =>
setNotifications({ ...notifications, push: checked === true })
}
>
<IconPlaceholder
lucide="BellIcon"
tabler="IconBell"
hugeicons="NotificationIcon"
phosphor="BellIcon"
remixicon="RiNotificationLine"
/>
Push notifications
</DropdownMenuCheckboxItem>
</DropdownMenuGroup>
</DropdownMenuContent>
</DropdownMenu>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DropdownMenuWithCheckboxesIcons() do?
DropdownMenuWithCheckboxesIcons() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/dropdown-menu-example.tsx.
Where is DropdownMenuWithCheckboxesIcons() defined?
DropdownMenuWithCheckboxesIcons() is defined in apps/v4/registry/bases/base/examples/dropdown-menu-example.tsx at line 373.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free