Radio Group
One dot for the whole group. On a change it leaves the old well and travels to the new one, stretching along its path, then settles.
$149 once · every Pro piece
Customize
vertical
horizontal
Arrow keys move and select.
Install
npx shadcn@latest add @obsyde/radio-groupNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { RadioGroup } from '@/components/obsyde/ember/radio-group/RadioGroup';
export function Example() {
return (
<RadioGroup options="North, East, South, West" value="East" />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/radio-group/RadioGroup.tsxcomponentember/radio-group/radio-group.cssstylesember/radio-group/RadioGroupDemo.tsxdemoember/actions-kit/kit.tssharedember/shared/accent.tssharedember/shared/spring.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
optionsOptions | string | 'North, East, South, West' |
valueValue | string | 'East' |
orientationOrientation | 'vertical' | 'horizontal' | 'vertical' |
disabledDisabled | boolean | false |