Component libraryModel selector

Model selector

Pro

Search and compare a consumer-supplied model catalog, then choose a model and mode with exact native form values.

npx shadcn@latest add @tidal-pro/model-selector
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/model-selector

Import components/ui/tidal.css, components/ui/model-selector.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Consumer-owned groups contain unique non-empty IDs, labels, optional descriptions/search text and typed model records. Models and modes provide exact IDs and nonblank accessible labels; models may also provide description, availability, context, cost, capabilities and search text. Controlled query, selectedModelId and selectedModeId produce proposals through native search, click and plain Arrow/Home/End radio-key events; caller handlers run first and prevention suppresses proposals. Consumers own the catalog, availability, costs, selection acceptance, filtering semantics and downstream requests. A selected model outside filtered results remains visible with an explicit localized status. Optional modelName/modeName serialize the exact controlled IDs through native hidden inputs and external form association. Root/search/model/mode refs and native prop bags, disabled state including selected-model modes, empty and configuration errors, numeric content, 44px choices, 16px narrow search, RTL, forced colors and reduced motion are supported. Choice ARIA roles, checked state, labels, tab order and disabled semantics are component-owned. No provider calls, model discovery, pricing lookup, authentication, storage or inference occurs.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.