Radio Group 14

PreviousNext

An animated radio group with motion effects for notification preferences

Docs
shadcn-studiocomponent

Preview

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

const RadioGroupAnimatedDemo = () => {
  return (
    <RadioGroup defaultValue='realtime'>
      <div className='flex items-center gap-2'>
        <RadioGroupItem value='realtime' id='notifications-realtime' />
        <Label htmlFor='notifications-realtime'>Real-time</Label>
      </div>
      <div className='flex items-center gap-2'>
        <RadioGroupItem value='daily' id='notifications-daily' />
        <Label htmlFor='notifications-daily'>Daily Digest</Label>
      </div>
      <div className='flex items-center gap-2'>
        <RadioGroupItem value='none' id='notifications-none' />
        <Label htmlFor='notifications-none'>No Notifications</Label>
      </div>
    </RadioGroup>
  )
}

export default RadioGroupAnimatedDemo

Installation

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

Usage

import { RadioGroup14 } from "@/components/radio-group-14"
<RadioGroup14 />