miladjoodi

Native Select

Forms

About

A styled wrapper around the native HTML select element for choosing one option from a dropdown, with support for option groups, disabled and invalid states.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Native Select to your project and fits it to your theme.

Code

How Native Select is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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

export default function NativeSelectDemo() {
  return (
    <div dir="rtl">
      <NativeSelect>
        <NativeSelectOption value="">انتخاب وضعیت</NativeSelectOption>
        <NativeSelectOption value="todo">انجام‌دادنی</NativeSelectOption>
        <NativeSelectOption value="in-progress">
          در حال انجام
        </NativeSelectOption>
        <NativeSelectOption value="done">انجام‌شده</NativeSelectOption>
        <NativeSelectOption value="cancelled">لغوشده</NativeSelectOption>
      </NativeSelect>
    </div>
  );
}

Dependencies

More by miladjoodi

View all
  • Image Diff Slider

    Image Diff Slider

    39
  • Empty State

    Empty State

  • Avatar

    Avatar

  • Phone Input

    Phone Input

  • Button

    Button

  • Item

    Item

  • Signature Pad

    Signature Pad

  • Hover Card

    Hover Card

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19