TidalUI

Native select preview

A platform-native selection menu with help text and validation.

pro · Forms · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/native-select

Import components/ui/tidal.css, components/ui/native-select.css. Wrap installed components in tidal-scope.

Preview

Native select component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/native-select.css";
import{TidalNativeSelect}from"./components/ui/native-select";
export default()=><div className="tidal-scope"><TidalNativeSelect children={"value"} label={"Demo"}/></div>;

API and props

TidalNativeSelect.children (required)
ReactNode

Required children value accepted by this exported component.

TidalNativeSelect.label (required)
ReactNode

Required label value accepted by this exported component.

TidalNativeSelect.aria-disabled
Booleanish | undefined

Accessible disabled supplied by the consumer.

TidalNativeSelect.aria-invalid
boolean | "true" | "false" | "grammar" | "spelling" | undefined

Accessible invalid supplied by the consumer.

TidalNativeSelect.defaultValue
string | number | undefined

Optional default value value accepted by this exported component.

TidalNativeSelect.description
ReactNode

Optional description value accepted by this exported component.

TidalNativeSelect.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalNativeSelect.error
ReactNode

Optional error value accepted by this exported component.

TidalNativeSelect.onChange
ChangeEventHandler<HTMLSelectElement, HTMLSelectElement> | undefined

Callback invoked when the change interaction is proposed.

TidalNativeSelect.onInput
InputEventHandler<HTMLSelectElement> | undefined

Callback invoked when the input interaction is proposed.

TidalNativeSelect.onKeyDown
KeyboardEventHandler<HTMLSelectElement> | undefined

Callback invoked when the key down interaction is proposed.

TidalNativeSelect.onPointerDown
PointerEventHandler<HTMLSelectElement> | undefined

Callback invoked when the pointer down interaction is proposed.

TidalNativeSelect.readOnly
boolean | undefined

A native select has no readonly attribute, so read-only mode requires a controlled value.

TidalNativeSelect.rootClassName
string | undefined

Optional root class name value accepted by this exported component.

TidalNativeSelect.value
string | number | undefined

Optional value value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas