A settings panel with a section rail on the left and the chosen group on the right, laying out hairline preference rows with switches, a select for the group's default, and a save bar underneath.
Settings panel with a section rail on the left and the chosen group on the right, laying out preference rows separated by hairlines, each with its own switch, a select for the group's default, and a save bar underneath.
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.
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/settings66?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/settings66?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/settings66.tsx, the select and switch shadcn/ui primitives it is built on, and the badge23 and button21 components it uses for the eyebrow and the save action.
The installed file exports settings66Demo alongside the block: the exact props behind the preview above. Spread it to get a working panel in one line.
import { Settings66, settings66Demo } from "@/components/beste/block/settings66";
export default function SettingsPage() {
return <Settings66 {...settings66Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Settings66 } from "@/components/beste/block/settings66";
export default function SettingsPage() {
return (
<Settings66
badge={{ label: "Workspace" }}
heading="Settings your front desk can change without a ticket"
sections={[
{
name: "Notifications",
title: "Notifications",
description: "Decide what leaves the building, and on which channel.",
toggles: [
{
title: "Appointment reminders",
description: "Send a reminder 24 hours before the appointment.",
enabled: true,
},
{
title: "Daily digest for clinicians",
description: "One message at 07:30 with the day's list.",
},
],
choice: { label: "Reminder channel", options: ["Email only", "SMS only"] },
},
]}
saveBar={{
note: "Changes apply to the whole workspace and are written to the audit trail.",
buttonLabel: "Save preferences",
}}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Monospace eyebrow above the hairline rule, rendered via Badge23 |
heading | string | – | Section heading in the left column |
description | string | – | Supporting paragraph, right-aligned from md up |
sections | SettingsSection[] | [] | Groups in the rail, and the rows each one shows |
saveBar | { note: string; buttonLabel: string } | – | Note and save action along the bottom of the panel |
className | string | – | Extra classes for the outer <section> |
type Toggle = {
title: string;
description: string;
enabled?: boolean;
};
type Choice = { label: string; options: string[] };
type SettingsSection = {
name: string;
title: string;
description: string;
toggles?: Toggle[];
choice?: Choice;
};enabled. Flipping a switch, moving to another group, and coming back keeps the change.name is the rail label and title is the heading inside the panel, so the rail can stay short while the group's heading says the whole thing.key on the active index. Without it, React would keep the first group's chosen value mounted while the options underneath changed.defaultValue is the first entry of options, so the control opens on a real choice, and the value is uncontrolled from there.onChange and the save button has no handler, so the panel is a faithful shell and the write is the integrator's.lg, with the active group marked by a muted fill rather than a border.Wiring the form up
This block ships the preference markup only; persistence, validation, and saving are yours to add. Our guide wires field markup like this to React Hook Form, TanStack Form, and Formisch on one field system.
settings67
A subscription preference list where each list carries how often it sends, and the figure underneath recomputes the monthly email volume as boxes are ticked, down to a stated zero.
settings64
Billing history table displaying invoices with date, description, amount, payment status badges, and download buttons. Perfect for account billing pages and payment management dashboards.