Join our Discord community
Forms

Choicebox

Card-style radio and checkbox components for React and Next.js forms. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design for enhanced form selection interfaces with accessibility features.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/choicebox.json
npx shadcn@latest add https://www.shadcn.io/registry/choicebox.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/choicebox.json
bunx shadcn@latest add https://www.shadcn.io/registry/choicebox.json

Features

  • Card-style inputs - Enhanced radio/checkbox alternatives with visual appeal using Tailwind CSS
  • Keyboard navigation - Full accessibility support with arrow keys and space/enter selection
  • Flexible layouts - Inline and block options with responsive design for Next.js forms
  • Custom content - Headers, titles, descriptions, and indicators with TypeScript safety
  • State management - Selected, hover, disabled, and focus states using shadcn/ui theming
  • Open source - Free React component for enhanced form interfaces

Examples

Inline Choiceboxes

Loading component...

Use Cases

  • Forms - Settings, preferences, plan selection with enhanced UX
  • Surveys - Question responses with improved visual hierarchy
  • Configuration - Feature toggles and option selection panels
  • E-commerce - Product variants, shipping options, payment methods

Implementation

Uses standard radio/checkbox inputs with enhanced styling. Works with form libraries like React Hook Form. Keyboard accessible with proper ARIA labels.