Model selector preview
Search and compare a consumer-supplied model catalog, then choose a model and mode with exact native form values.
pro · Forms · composite
When to use
- Use it when a page needs search and compare a consumer-supplied model catalog, then choose a model and mode with exact native form values.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than model selector.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/model-selectorImport components/ui/tidal.css, components/ui/model-selector.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/model-selector.css";
import{TidalModelSelector}from"./components/ui/model-selector";
export default(p:Parameters<typeof TidalModelSelector>[0])=><div className="tidal-scope"><TidalModelSelector {...p}/></div>;API and props
TidalModelSelector.groups (required)ReadonlyArray<TidalModelGroup>Required groups value accepted by this exported component.
TidalModelSelector.onModeChange (required)(modeId: string, event: SelectionEvent) => voidCallback invoked when the mode change interaction is proposed.
TidalModelSelector.onModelChange (required)(modelId: string, event: SelectionEvent) => voidCallback invoked when the model change interaction is proposed.
TidalModelSelector.onQueryChange (required)(query: string, event: ChangeEvent<HTMLInputElement>) => voidCallback invoked when the query change interaction is proposed.
TidalModelSelector.query (required)stringRequired query value accepted by this exported component.
TidalModelSelector.selectedModeId (required)string | nullRequired selected mode id value accepted by this exported component.
TidalModelSelector.selectedModelId (required)string | nullRequired selected model id value accepted by this exported component.
TidalModelSelector.descriptionReactNodeOptional description value accepted by this exported component.
TidalModelSelector.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalModelSelector.emptyReactNodeOptional empty value accepted by this exported component.
TidalModelSelector.footerReactNodeOptional footer value accepted by this exported component.
TidalModelSelector.formstring | undefinedOptional form value accepted by this exported component.
TidalModelSelector.labelsPartial<{ search: string; searchPlaceholder: string; models: string; modes: string; context: string; cost: string; capabilities: string; available: string; preview: string; unavailable: string; results: (visible: number, total: number) => string; choose: string; invalid: string; unknownModel: string; unknownMode: string; selectionOutsideResults: string; }> | undefinedOptional labels value accepted by this exported component.
TidalModelSelector.modeInputPropsHiddenInputProps | undefinedOptional mode input props value accepted by this exported component.
TidalModelSelector.modeInputRefRef<HTMLInputElement> | undefinedOptional mode input ref value accepted by this exported component.
TidalModelSelector.modelInputPropsHiddenInputProps | undefinedOptional model input props value accepted by this exported component.
TidalModelSelector.modelInputRefRef<HTMLInputElement> | undefinedOptional model input ref value accepted by this exported component.
TidalModelSelector.modelNamestring | undefinedOptional model name value accepted by this exported component.
TidalModelSelector.modeNamestring | undefinedOptional mode name value accepted by this exported component.
TidalModelSelector.searchInputPropsSearchInputProps | undefinedOptional search input props value accepted by this exported component.
TidalModelSelector.searchInputRefRef<HTMLInputElement> | undefinedOptional search input ref value accepted by this exported component.
TidalModelSelector.titleReactNodeOptional title value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.