āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/imskyleen/animate-ui/primitives/base/switch ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<Switch>
<SwitchIcon position="left" />
<SwitchIcon position="right" />
<SwitchThumb>
<SwitchIcon position="thumb" />
</SwitchThumb>
</Switch>
<ExternalLink href="https://base-ui.com/react/components/switch#root" text="Base UI API Reference - Switch.Root" />
<TypeTable type={{ '...props': { description: 'The props of the Switch component.', type: 'HTMLMotionProps<"button">', required: false, }, }} />
<Callout type="info"> The `render` property is not supported in the `Switch` component, as it is used for animation. </Callout><ExternalLink href="https://base-ui.com/react/components/switch#thumb" text="Base UI API Reference - Switch.Thumb" />
<TypeTable type={{ pressedAnimation: { description: 'The animation of the thumb when pressed.', type: 'TargetAndTransition' | 'VariantLabels' | 'boolean' | 'LegacyAnimationControls', required: false, }, '...props': { description: 'The props of the SwitchThumb component.', type: 'HTMLMotionProps<"div">', required: false, }, }} />
<Callout type="info"> The `render` property is not supported in the `SwitchThumb` component, as it is used for animation. </Callout><TypeTable type={{ position: { description: 'The position of the icon.', type: 'left' | 'right' | 'thumb', required: true, }, '...props': { description: 'The props of the SwitchIcon component.', type: 'HTMLMotionProps<"div">', required: false, }, }} />
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā