Ballmac UI home

Settings 2: notification preferences

Notification settings that save as you go: digest frequency as radio cards, a grid of switches for each event and channel (cards on phones), and quiet hours with times and weekdays.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/settings-2

Usage

Example: settings-2-demo.tsx
import { Settings2 } from "@/components/ballmac/blocks/settings-2/settings-2"

export default function Settings2Demo() {
  return <Settings2 />
}

Dependencies

Use with AI

Notification preferences with instant saving. Pass events=[{ id, label, description }], defaultValues and onChange(values) (return a promise; throw to show an error). With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Settings 2: notification preferences (@ballmac/settings-2) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Notification, alert and email preference pages
  • Settings that apply the moment they are toggled

Not for

  • Forms that need an explicit Save (use settings-1)

Registry JSON: https://ui.ballmac.com/r/settings-2.json

Free to use in personal and commercial projects.