Components › Forms

Native select

A styled browser select that keeps the platform’s own picker and keyboard behavior.

Installation

npx plankui@latest add native-select

Usage

import { NativeSelect } from "@/components/ui/native-select";

<NativeSelect aria-label="Time zone" defaultValue="utc">
  <option value="utc">Coordinated Universal Time</option>
  <option value="kolkata">Asia/Kolkata</option>
</NativeSelect>

API reference

PropTypeDefaultDescription
size"sm" | "md""md"Control height.
wrapperClassNamestringStyles the wrapper around the select and chevron.

View the source on GitHub