Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import Settings/Notifications from ./settings-notifications.
import { SettingsNotificationsScreen } from "@/components/ui/settings-notifications";
export default function Page() {
return (
<SettingsNotificationsScreen
notifications={settings}
onSave={(notifications) => saveNotifications(notifications)}
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| notifications | NotificationValues | Digest on and its time, the weekly report, the types (id, title, note, channel: both, email, mobile or inbox) and quiet hours with from and to – the sample person when left out | |
| onSave | (notifications: NotificationValues) => void | Called with all settings whenever something changes | |
| onNavigate | (label: string) => void | Called with the label of a sidebar item | |
| workspace | string | Workspace name in the sidebar | |
| user | { name: string; avatar?: string } | Account at the bottom of the sidebar | |
| loading | boolean | While the settings load: the switches, times and each type's channel as gray shapes in the shape of the real ones | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
Below 600px each select moves under its label and the table head keeps only Notify on
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as