Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Native Select

The browser's own select, styled like the other fields.

Rendered by React 19.3.1

native-select.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/native-select.json

It also adds utils. The app needs its setup first: Installation.

Usage

Write NativeSelectOptions and NativeSelectOptGroups inside, as option and optgroup. Use it where the platform's picker is wanted, on phones in particular.

import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from '@/components/ui/native-select'

Examples

API reference

Native Select wraps no headless component of its own: its parts are elements with classes, and their props are the element's.