@neynar/ui
Version:
React UI component library built on shadcn/ui and Tailwind CSS
28 lines (20 loc) • 1.02 kB
Markdown
when a RadioGroupItem is in the checked state RadioGroupIndicator automatically appears inside RadioGroupItem when that item is selected. It provides the visual feedback for the checked state using a filled circle icon. The indicator is automatically managed by the RadioGroupItem and only renders when checked. This component is typically not used directly but is included in RadioGroupItem. It can be customized or replaced using the asChild pattern if needed.
```jsx
import { RadioGroupIndicator } from '@neynar/ui';
<RadioGroupIndicator
forceMount={true}
asChild={true}
/>
```
- **Type**: `boolean`
- **Required**: No
- **Description**: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries
- **Type**: `boolean`
- **Required**: No
- **Description**: Change the default rendered element for the one passed as a child
**Type**: component
Visual indicator shown