# SelectField

Native selection with a Mizu-styled option menu where supported.

- Family: Forms, imported from `mizu-ui` or `mizu-ui/forms`
- Docs: https://mizu.user64bit.world/components/select-field
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/forms/Fields.tsx

## Usage

```tsx
import { SelectField } from "mizu-ui";

export function Example() {
  return (
    <SelectField label="Visibility" defaultValue="private">
      <option value="private">Private</option>
      <option value="public">Public</option>
    </SelectField>
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/select-field
```

## Props

- `label`: `string`. Accessible select label.
- `children`: `option[]`. Native option elements.
- `...select`: `SelectHTMLAttributes`. Native value, multiple, events and ref.

## Accessibility

Keeps native keyboard, form and touch behavior. Browsers without customizable selects use their platform picker.

## Motion

CSS transitions explain state changes. Reduced motion removes travel.
