Native Select

The browser's own select, dressed as a macOS pop-up button.

@cupertinoui/native-selectRegistry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/native-select

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<NativeSelect defaultValue="5min">
  <NativeSelectOption value="1min">After 1 minute</NativeSelectOption>
  <NativeSelectOption value="5min">After 5 minutes</NativeSelectOption>
</NativeSelect>
Opens the system menu, which suits long lists and phones. For the macOS menu itself, use Pop-up Button (Select).

API Reference

Every part forwards the props of the underlying element. The props below are the ones CupertinoUI adds or changes.

NativeSelect

PropTypeDescription
size"sm" | "default"
Default: "default"
20 or 24pt tall.
classNamestringExtra classes, merged with the component's own.