Skip to content
Menu

Inputs

Model picker prompt box

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

Using Model picker prompt box

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.

Customize the preview

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

ControlTypeDefaultPreview limits
placeholdertextWhat can I do for you?Up to 60 characters
headlinetextDrafts now sync across your teamUp to 60 characters
accentcolor#FF6A1FNo additional limit in the metadata.
maxRowsnumber8From 3 to 14; step 1
showAttachbooleantrueNo additional limit in the metadata.
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.

Connect your agent

Related open components