Email me when the next release ships
Installation
npx shadcn@latest add @iconiq/r-checkboxReducedMotion
Pass reducedMotionwhen you want the installed component to settle into its quieter motion path immediately. Leaving the prop unset still respects the user's system-level reduced motion preference.
Email me when the next release ships
Props
Checkbox
6 props
Provider-switchable single checkbox with the same Iconiq API layered over Base UI and Radix UI primitives.
checked
booleanControlled checked state for the checkbox. Pass this when the parent owns the value.
defaultChecked
booleanDefault
falseInitial checked state for uncontrolled usage. The component manages future toggles internally.
onCheckedChange
(checked: boolean) => voidCalled with the next boolean state whenever the checkbox toggles.
label
stringOptional inline label rendered beside the checkbox with the same opacity fade used in the original component.
id
stringOptional id forwarded to the underlying primitive control.
className
stringMerged onto the outer inline-flex wrapper so you can position the checkbox row in your layout.
Notes
Current install target: Radix UI.
Dependencies declared by this registry entry: @radix-ui/react-checkbox, motion.
Installs a Radix checkbox with the same controlled and uncontrolled Iconiq API as the Base UI version.
Uses the exact same Motion timing and checkmark draw behavior as the original checkbox component.
The generated registry file is /r/r-checkbox.json.
ReducedMotion
1 prop
Shared motion override for the motion-enabled exports documented on this page.
reducedMotion
booleanWhen true, the component uses its calmer motion path immediately. Leaving it unset still respects the user's system-level reduced motion preference.
Notes
This prop can force reduced motion on, but it does not opt out of OS-level accessibility preferences when the system is already requesting less motion.