adn-ui
Components

Native Select

A high-quality, styled React native select component that provides lightweight native select functionality with accessible styling and size support.

The NativeSelect component wraps the HTML <select> element with consistent styling and a custom dropdown indicator.

Usage

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

export function ExampleNativeSelect() {
  return (
    <NativeSelect defaultValue="usd">
      <NativeSelect.Option value="usd">USD ($)</NativeSelect.Option>
      <NativeSelect.Option value="eur">EUR (€)</NativeSelect.Option>
      <NativeSelect.Option value="gbp">GBP (£)</NativeSelect.Option>
    </NativeSelect>
  );
}

Preview

Anatomy

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

<NativeSelect>
  <NativeSelect.Option />
  <NativeSelect.OptGroup />
</NativeSelect>;

API Reference

NativeSelect Props

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Size variant for select.
variant'default' | 'outline''default'Visual style variant.
iconReact.ReactNodeundefinedCustom icon element for dropdown arrow.

On this page