# Switch

A tactile toggle for settings that take effect immediately.

- ID: `switch`
- Import: `animui/switch`
- Category: Inputs
- Runtime exports: `Switch`, `default`
- Declaration: `types/free/components/switch.d.ts`
- Type provenance: emitted-original-typescript
- Related: checkbox, segmented-control, theme-switch

```tsx
import { Switch } from 'animui/switch';
```

This import example is not a complete render recipe: read the declaration below and its local references for required props, data, callbacks and provider context. Use `animui info switch` to resolve the local declaration graph. Global setup is in `llms.txt`.

```ts
export { Switch, default } from '../registry/components/switch/switch.js';
export type { SwitchProps } from '../registry/components/switch/switch.js';
```
