Components
NotificationsSettings
Attio's "Notifications" settings page.
Available since@crisp-ui-kit/crisp@0.57.2
Attio's "Notifications" settings page (crisp#630), measured live: a title + description, a "Daily digest" card (a single toggle row), and a "Collaboration notifications" matrix — a header row plus one row per event, each with an Email and an App checkbox.
Installation
npm install @crisp-ui-kit/crispProps
Prop
Type
Notes
- For an app with no email or digest:
showEmail={false}drops the Email column (rows then need onlyapp), and the Daily digest section renders only whenonDailyDigestChangeis passed.childrenrender after the matrix at the same 40px section gap, and a row withlockedshows its App checkbox checked and disabled. - The matrix has no per-row model of its own beyond
email/app.rowsis a flat list ofNotificationMatrixRow(id,title,description,email,app) — the component holds no state,onEmailChange/onAppChangefire with the row'sidand the checkbox's new value, and a consumer owns persisting it. - All copy is overridable through explicit props (
title,dailyDigestSectionTitle, etc.) with plain English defaults, rather than throughCrispMessagesProvider— the same patternMembersSettingsandWorkspaceGeneralSettingsuse for their own full-page copy.