# Switch (@salmonui/inputs/switch)

> The Switch component of @salmonui/inputs/switch: Switch: a native &lt;input type="checkbox" role="switch"> drawn as a track and thumb, labelled by its children. Space toggles; the checked state is the native one. ref is the input; unknown props go to the input, className / style to the root.

Canonical: https://salmonui.dev/docs/reference/inputs/switch/Switch

```ts
import { Switch } from '@salmonui/inputs/switch';
```

Entry index: https://salmonui.dev/docs/reference/inputs/switch (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/switch.md).

## Reference

Kind: component

```ts
function Switch(props: SwitchProps): ReactNode;
```

Switch: a native
`<input type="checkbox" role="switch">` drawn as a track and thumb,
labelled by its children. Space toggles; the checked state is the
native one. `ref` is the input; unknown props go to the input,
`className` / `style` to the root.

Props: [`SwitchProps`](https://salmonui.dev/docs/reference/inputs/switch/SwitchProps) (its members are the props)
