Skip to content

API Reference

Catalog metadata for this block. Install copies the source into your project.

npx cronus-ui add notification-preferences
Skip Notification preferences fields table
FieldTypeDefaultDescription
slug*
string"notification-preferences"Registry item id. Passed to cronus-ui add.
name*
string"Notification preferences"Display name shown in the gallery.
description*
string"Per-channel notification controls as a matrix or grouped toggle list."Short summary of what the block covers.
variants
{ id: string; name: string; description: string }[]["matrix", "simple"]Alternate layouts. Install a look with npx cronus-ui add <slug>--<id>. Omitted when the block has a single default.

Variants

Every published look for this block.

Skip Notification preferences variants table
IdNameDescription
matrixChannel matrixPer-event switches across email, push, and SMS, grouped by area.
simpleSimple togglesGrouped email toggles with a plain-language description per row.