Skip to content
aq-ui
Back to ComponentsComponent

Native Select

Open-code aq-ui accessible component family for Native Select.

Preview

This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.

Loading interactive preview…

Installation

pnpm dlx aq-ui@alpha add native-select

API reference

SSR-safe

Import the parts you need, then jump to an export for its contract.

View full source

Quick start

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

<NativeSelect />

NativeSelect

constSource L10

Open-code aq-ui accessible component family for Native Select.

const NativeSelect = React.forwardRef<React.ComponentRef<"select">, NativeSelectProps>(…)
Props type
NativeSelectProps

Props

NameTypeDefault
size?"sm" | "default""default"
<NativeSelect />

NativeSelectOptGroup

constSource L55

Public const export from Native Select.

const NativeSelectOptGroup = React.forwardRef<React.ComponentRef<"optgroup">, React.ComponentProps<"optgroup">>(…)
Props type
React.ComponentProps<"optgroup">
<NativeSelectOptGroup />

NativeSelectOption

constSource L40

Public const export from Native Select.

const NativeSelectOption = React.forwardRef<React.ComponentRef<"option">, React.ComponentProps<"option">>(…)
Props type
React.ComponentProps<"option">
<NativeSelectOption />

Registry dependencies

utils

Package dependencies

lucide-react@^1.31.0

Files

  • components/ui/native-select.tsx

Source