Onboarding screen with toggle switches for configuring notification channels and frequency. Perfect for apps that need granular notification consent during setup.
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.
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.
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
npx shadcn add "https://ui.beste.co/r/onboarding18?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
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.
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.
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:
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" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string; variant?: "default" | "secondary" | "outline" } | – | Small badge above the heading |
heading | string | – | Main headline |
description | string | – | Supporting copy below the heading |
groups | NotificationGroup[] | [] | 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 |
currentStep | number | 1 | Current step number, used only to fill the step-of label |
totalSteps | number | 4 | Total step count, used only to fill the step-of label |
className | string | – | Extra classes for the outer <section> |
type NotificationOption = {
id: string;
title: string;
description: string;
defaultEnabled?: boolean;
};
type NotificationGroup = { title: string; options: NotificationOption[] };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.border-t divider placed between all but the last group, rather than a Separator component.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.onboarding3
Clean, centered welcome screen with a branded icon, heading, and single call-to-action. Perfect for simple app introductions that prioritize clarity over complexity.
onboarding30
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.
onboarding27
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.
onboarding25
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.
onboarding24
Onboarding screen displaying essential keyboard shortcuts in a grouped grid layout with key badges. Perfect for productivity tools that want to accelerate user adoption.
onboarding1
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.