Skip to content

Settings

Settings notifications

The Notifications pane of space settings, listing the sending-domain block plus two switch groups for member-facing and operator-facing emails.
Available
Ports as-is

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Settings notifications

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
customerItemsNotificationToggleItem[]CUSTOMER_NOTIFICATION_ITEMSMember-facing group. Defaults to `CUSTOMER_NOTIFICATION_ITEMS`.
adminItemsNotificationToggleItem[]ADMIN_NOTIFICATION_ITEMSOperator-facing group. Defaults to `ADMIN_NOTIFICATION_ITEMS`.
enabledRecord<string, boolean>—Which toggles are on, keyed by item id. Any id not present falls back to `defaultEnabled`, so a caller only has to name the exceptions.
initialEnabledRecord<string, boolean>—Uncontrolled starting map. Ignored when `enabled` is supplied.
defaultEnabledbooleantrueFallback for ids missing from the map. Defaults to `true` — BTS ships everything on.
onToggle(id: string, next: boolean) => void—Undocumented — add TSDoc to the prop in the library.
showSendingDomainbooleantrueRenders the sending-domain block above the two groups.
sendingDomainReact.ReactNode—Replaces the sending-domain block — pass a configured `SettingsSendingDomain`.
classNamestring—Undocumented — add TSDoc to the prop in the library.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/settings/SettingsNotifications.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
Use it to let an operator control which notifications go to members versus to themselves. Transactional notifications like purchase receipts and comment replies are locked on with a tooltip explaining they're required, and the enabled state for every other toggle can be lifted or left uncontrolled.