Skip to main content

Variable: Switch

@arolariu/components


@arolariu/components / Switch

Variable: Switch

const Switch: ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & RefAttributes<HTMLElement>>

Defined in: components/ui/switch.tsx:35

Toggles between on and off states with a styled thumb control.

Remarks

  • Renders a <button> element by default
  • Built on Base UI Switch
  • Supports the render prop for element composition
  • Styling via CSS Modules with --ac-* custom properties

Example

<Switch defaultChecked />

See

Base UI Documentation

// was this page useful?