Black Friday: 30% off Pro

Get 30% off

Updated

Tactile Toggles

Preview

Notifications

Customize

Accent
Squish6px

Installation

npx shadcn@latest add https://uibrik.com/r/tactile-toggles.json
Adds the files to components/uibrik/tactile-toggles and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/tactile-toggles.

Usage

import { TactileToggles } from "@/components/uibrik/tactile-toggles/tactile-toggles";​const items = [  { id: "push", label: "Push notifications", description: "Mentions and replies", defaultChecked: true },  { id: "digest", label: "Weekly digest", description: "A summary every Monday" },  // …2 more];​<TactileToggles  title="Notifications"  accent="#22c55e"  wash  squish={6}  items={items}  onChange={(id, checked) => {}}/>

Where to use Tactile Toggles

  • Notification settings

    A tint sweeping across the row as switches turn on makes each change visible.

    Pairs with Settings Page

  • Feature flags

    Pausing the rows a switch overrides shows dependencies between settings.

  • App preferences

    A list of tactile switches suits mobile-style settings screens.

Props

TactileToggles
title
Type string
"Notifications"
Heading above the list.
accent
Type string
"#22c55e"
Switch colour when on, and the wash colour.
wash
Type boolean
true
Sweep a faint tint across the row when a switch turns on.
squish
Type number
6
How far the knob stretches while pressed.
items
Type ToggleItem[]
–
Rows: { id, label, description?, defaultChecked?, overrides? }. A row with overrides pauses those rows while it's on.
onChange
Type (id: string, checked: boolean) => void
–
Called when a switch flips.
className
Type string
–
Classes for the outer shell.