Radio Group 7

PreviousNext

A radio group with descriptions for detailed plan selection options

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/radio-group/radio-group-07.tsx
import { Label } from '@/registry/new-york/ui/label'
import { RadioGroup, RadioGroupItem } from '@/registry/new-york/ui/radio-group'

const RadioGroupDescriptionDemo = () => {
  return (
    <RadioGroup defaultValue='basic'>
      <div className='flex gap-2'>
        <RadioGroupItem value='basic' id='plan-basic' />
        <div className='grid flex-1 space-y-2'>
          <Label htmlFor='plan-basic'>Basic Plan</Label>
          <p className='text-muted-foreground text-xs'>Perfect for individuals just getting started</p>
        </div>
      </div>
      <div className='flex gap-2'>
        <RadioGroupItem value='pro' id='plan-pro' />
        <div className='grid flex-1 space-y-2'>
          <Label htmlFor='plan-pro'>Pro Plan</Label>
          <p className='text-muted-foreground text-xs'>Advanced features for power users and small teams</p>
        </div>
      </div>
      <div className='flex gap-2'>
        <RadioGroupItem value='enterprise' id='plan-enterprise' />
        <div className='grid flex-1 space-y-2'>
          <Label htmlFor='plan-enterprise'>Enterprise Plan</Label>
          <p className='text-muted-foreground text-xs'>Custom solutions for large organizations</p>
        </div>
      </div>
    </RadioGroup>
  )
}

export default RadioGroupDescriptionDemo

Installation

npx shadcn@latest add @shadcn-studio/radio-group-07

Usage

import { RadioGroup07 } from "@/components/radio-group-07"
<RadioGroup07 />