# Model picker prompt box

https://fieldbook.lizardi.mx/components/model-picker-prompt-box

Category: Inputs
![Still of the Model picker prompt box component, a Fieldbook UI component in Inputs.](https://fieldbook.lizardi.mx/thumbs/model-picker-prompt-box.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/model-picker-prompt-box-4b6f2ef8f3.mp4 (5 s, silent)

Model picker prompt box: Compose a prompt, select a model, and attach a local file with explicit callbacks and status feedback.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| placeholder | text | What can I do for you? | Up to 60 characters |
| headline | text | Drafts now sync across your team | Up to 60 characters |
| accent | color | #FF6A1F | No additional limit in the metadata. |
| maxRows | number | 8 | From 3 to 14; step 1 |
| showAttach | boolean | true | No additional limit in the metadata. |

## Usage notes

Compose a prompt, select a model, and attach a local file with explicit callbacks and status feedback.

Model picker prompt box uses the card preview frame with a light/dark theme setting.

Provide models as id/name pairs. Connect value/onValueChange, onSend, onModelChange and onAttach; the attachment callback receives the selected File.

The included data and actions are local examples. Connect persistence and service calls in the host application.

### Which frameworks are available for Model picker prompt box?

Model picker prompt box is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Model picker prompt box depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx.

### What accessibility details are visible in Model picker prompt box?

The React source for Model picker prompt box includes: native elements (button, input, textarea); attributes and handlers (aria-activedescendant, aria-controls, aria-expanded, aria-haspopup, aria-hidden, aria-label, aria-live, aria-selected, onKeyDown, tabIndex); explicit roles (combobox, listbox, option, status); key comparisons (ArrowDown, ArrowUp, End, Enter, Escape, Home, Space, Tab). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Model picker prompt box handle reduced motion?

Model picker prompt box reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduce ? false : \{ y: 9, opacity: 0 \}; reduce ? \{ opacity: 0 \} : \{ y: -9, opacity: 0 \}. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "model-picker-prompt-box",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Auto Grow Textarea](https://fieldbook.lizardi.mx/components/auto-grow-textarea)
- [Birthdate popover picker](https://fieldbook.lizardi.mx/components/birthdate-popover-picker)
- [Combobox field](https://fieldbook.lizardi.mx/components/combobox-field)
- [Grouped select menu](https://fieldbook.lizardi.mx/components/grouped-select-menu)
- [Addon Input Group](https://fieldbook.lizardi.mx/components/addon-input-group)
- [Appointment Range Card](https://fieldbook.lizardi.mx/components/appointment-range-card)
