Search documentation

Search guides, examples, and component APIs.

Quick links
↑↓ NavigateEnter OpenEsc Close
Get started

Blocks / Settings

Notification settings

An events-by-channel matrix with icon column headers, a pause switch that tints the page, and digest frequency as radio cards with a week strip.

bunx --bun @getweini/cli@latest add badge card radio-group switch
Customize
  • The settings shell (workspace header, grouped section nav with `aria-current`, and the back link) is identical across the four settings blocks, so the pages read as one product. Its labels live in `copy.nav`; it becomes a scrolling row of sections below 1024px.
  • The pause switch mutes the whole matrix and emits `pause-change`. Pass `paused` to start muted; the card turns to the warning tint and explains that security alerts still arrive.
  • Preferences apply instantly. The block keeps a local copy of `preferences` and emits `change` with the full object after each switch, and `digest-change` when the frequency changes. Update the props from your response to confirm.
  • Describe your events and groups in `groups`; add or remove channels in `channels`. Preferences are keyed by event id, then channel id, so a new row or column needs no template edit. Add an icon path for a new channel id in `icons`.
  • Each switch has its own accessible name, for example "Push: Mentions". On small screens the column header disappears and the channel name shows beside each switch instead.
  • Digest options are native radios inside `RadioGroup`; the label stretches over its whole card, so the card is the click target. Set `disabled` to lock everything while a request runs.