Notification Preferences

Step 4 of 4

Notifications

Stay in the loop

Choose which notifications you'd like to receive. You can update these anytime in settings.

Activity

Mentions & replies

When someone mentions you or replies to your comment

Task assignments

When a task is assigned to you or your team

New comments

When someone comments on your work

Updates

Product updates

New features, improvements, and changelog

Weekly digest

A summary of your team's activity every Monday

Tips & tutorials

Best practices and how-to guides

3 notifications enabled

About this block

Notification PreferencesPRO

Onboarding screen with toggle switches for configuring notification channels and frequency. Perfect for apps that need granular notification consent during setup.

Onboarding18: Notification Preferences

Onboarding screen that groups notification toggles under category headings inside a single card, using shadcn Switch controls seeded from each option's default state, with a live " notifications enabled" tally beneath.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/onboarding18?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/onboarding18?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/onboarding18.tsx and the badge, button, and switch shadcn/ui primitives it depends on.

Quick start

The installed file exports onboarding18Demo alongside the block: the exact props behind the preview above. Spread it to get a working notification preferences step in one line.

tsx
import { Onboarding18, onboarding18Demo } from "@/components/beste/block/onboarding18";

export default function OnboardingPage() {
  return <Onboarding18 {...onboarding18Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Onboarding18 } from "@/components/beste/block/onboarding18";

export default function OnboardingPage() {
  return (
    <Onboarding18
      badge={{ label: "Notifications", variant: "secondary" }}
      heading="Stay in the loop"
      description="Choose which notifications you'd like to receive."
      groups={[
        {
          title: "Activity",
          options: [
            { id: "mentions", title: "Mentions & replies", description: "When someone mentions you", defaultEnabled: true },
            { id: "comments", title: "New comments", description: "When someone comments on your work", defaultEnabled: false },
          ],
        },
        {
          title: "Updates",
          options: [
            { id: "product", title: "Product updates", description: "New features and changelog", defaultEnabled: true },
          ],
        },
      ]}
      primaryButton={{ label: "Save & Continue", href: "/onboarding/finish" }}
      secondaryButton={{ label: "Skip for now", href: "/dashboard" }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string; variant?: "default" | "secondary" | "outline" }Small badge above the heading
headingstringMain headline
descriptionstringSupporting copy below the heading
groupsNotificationGroup[][]Categorized groups of notification toggles
primaryButton{ label: string; href: string }Primary CTA link
secondaryButton{ label: string; href: string }Secondary CTA link
labels{ stepOf?: string; enabledCount?: string }Template strings for the step counter and enabled-count summary
currentStepnumber1Current step number, used only to fill the step-of label
totalStepsnumber4Total step count, used only to fill the step-of label
classNamestringExtra classes for the outer <section>
ts
type NotificationOption = {
  id: string;
  title: string;
  description: string;
  defaultEnabled?: boolean;
};

type NotificationGroup = { title: string; options: NotificationOption[] };

Behavior notes

  • Switch state is seeded once at mount by flattening every group's options and collecting the ids where defaultEnabled is true into a useState<Set<string>>; toggling a Switch only flips membership in that local set, there's no onChange/onSave callback prop, so nothing is persisted outside the component.
  • Groups are separated by a manually rendered border-t divider placed between all but the last group, rather than a Separator component.
  • The " notifications enabled" summary always reflects the live count across every group combined, not a per-group tally.
  • primaryButton ("Save & Continue" in the demo) and secondaryButton are always-enabled plain links regardless of how many switches are on; nothing gates on or reports the switch state back to the caller.

More Onboarding blocks

View all Onboarding
PRO

onboarding30

Feature Tour Carousel

Onboarding screen with navigable feature highlight cards, dot indicators, and back/next buttons. Perfect for introducing key platform features during the first-time user experience.

FREE

onboarding3

Minimal Welcome with Icon

Clean, centered welcome screen with a branded icon, heading, and single call-to-action. Perfect for simple app introductions that prioritize clarity over complexity.

PRO

onboarding25

Theme and Appearance Picker

Onboarding screen for choosing theme mode (light, dark, system) and accent color. Perfect for apps that offer visual customization as part of the onboarding experience.

PRO

onboarding27

Attribution Survey

Onboarding screen with a quick survey asking how the user discovered the product, with selectable options and an optional text input. Perfect for marketing attribution during signup.

PRO

onboarding24

Keyboard Shortcuts Cheat Sheet

Onboarding screen displaying essential keyboard shortcuts in a grouped grid layout with key badges. Perfect for productivity tools that want to accelerate user adoption.

FREE

onboarding1

Welcome Hero with Step Indicator

Centered welcome screen featuring a hero image, step counter, and dual CTAs. Perfect for app onboarding flows that guide users through a multi-step setup process.