Feature 46 - Toggle switches driving a live previewPro

Copy beside a settings card whose switches add or remove pieces of a message preview in real time.

About Feature 46

Copy beside a settings card whose switches add or remove pieces of a message preview in real time.

Feature 46 is a pro feature block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 127 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • switch
  • toggle
  • preview
  • settings
  • interactive

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/feature-46

Dependencies installed automatically: lucide-react, motion.

Uses: reveal, switch, utils.

Usage

import Feature46 from "@/components/blocks/feature-46"

export default function Page() {
  return <Feature46 />
}

FAQ