shadcn.io is not affiliated with official shadcn/ui
Dropdown Menu examples · Settings
Notification Settings Dropdown Menu for React
A notifications menu with two groups of toggles: the channels to use and the events to be notified about.
People want a say in how and when they're pinged. This dropdown menu opens from a Notifications button and holds two groups of checkbox rows: Email, Push and SMS under Notification Channels, and Comments, Mentions and Product Updates under Notify Me About. It fits app headers and quick settings panels.
Preview
Installation
FAQ
Which notification rows start on?
Email Notifications, Push Notifications, Comments and Mentions start checked; SMS Notifications and Product Updates start off.
Each DropdownMenuCheckboxItem takes checked and onCheckedChange, which receives a boolean.
How are the two sections built?
Two DropdownMenuGroups with a separator between them. Each starts with its DropdownMenuLabel, Notification Channels or Notify Me About, and holds three checkbox rows. The menu is w-56.
Can Email and Push both stay on?
Yes. Every row is its own toggle, so any mix of channels and events can be on, including none.
Related
- Preferences Dropdown Dropdown MenuAn editor preferences menu of five
- Profile with Preferences Dropdown MenuA profile menu with Profile and Settings
- Account Settings Dropdown Dropdown MenuAn account menu opened from the user's
- Dropdown with Checkboxes Dropdown MenuA View menu of checkbox rows that show or
- Default SwitchA switch in its default off state, with
- Language Selector Dropdown MenuA language picker with a flag beside each