Radio Card Plans
Plan cards backed by native radios: one shared selection ring glides from card to card with a spring while the radio dot pops in.
radiocardplanslayoutpricing
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/radio-card-plans.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/radio-card-plans.json"Manual install+
1. Install the dependencies.
$pnpm add motion2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Radio Card Plans" component from PixelPapa UI to this project. What it is: Plan cards backed by native radios: one shared selection ring glides from card to card with a spring while the radio dot pops in. Category: Checkboxes & Radios. Depends on: motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/radio-card-plans.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/radio-card-plans.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/radio-card-plans" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More checkboxes & radios
- Checkbox Card SelectMulti-select cards: a chosen card tints, its icon tile inverts and a check bubble springs into the corner while the running total rolls.
- Checkbox Draw CheckA checkbox whose fill springs out from the centre while the tick is drawn as a single pen stroke, then erased in reverse when cleared.
- Checkbox Indeterminate TreeA nested checkbox tree where parents reflect their children: the mark morphs between a dash and a check, and branches fold open with animated height.
- Checkbox Todo StrikethroughA to-do list where ticking an item draws a line through its text from left to right, then the finished item sinks to the bottom with a layout spring.
- Radio Segmented DotsA minimal radio group of dots on a hairline: a ringed marker bounces between them on a spring and the chosen option's name rolls in beside the label.