Preet Suthar

Native Select

Forms

About

A styled dropdown built on the native HTML select element with a chevron icon, supporting options and option groups.

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,
  NativeSelectOptGroup,
  NativeSelectOption,
} from "@/components/ui/native-select";

export default function NativeSelectDemo() {
  return (
    <div className="flex min-h-[200px] items-center justify-center p-6">
      <div className="grid w-full max-w-xs gap-2">
        <label className="text-sm font-medium" htmlFor="framework">
          Framework
        </label>
        <NativeSelect id="framework" defaultValue="next" className="w-full">
          <NativeSelectOptGroup label="React">
            <NativeSelectOption value="next">Next.js</NativeSelectOption>
            <NativeSelectOption value="remix">Remix</NativeSelectOption>
            <NativeSelectOption value="gatsby">Gatsby</NativeSelectOption>
          </NativeSelectOptGroup>
          <NativeSelectOptGroup label="Vue">
            <NativeSelectOption value="nuxt">Nuxt</NativeSelectOption>
            <NativeSelectOption value="vue">Vue</NativeSelectOption>
          </NativeSelectOptGroup>
        </NativeSelect>
      </div>
    </div>
  );
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.5K
  • Magic Text

    Magic Text

    845
  • Toolbar

    Toolbar

    822
  • Hero 2

    Hero 2

    818
  • Typewriter Text

    Typewriter Text

    769
  • AI Chat Input

    AI Chat Input

    734
  • Full Screen Signup

    Full Screen Signup

    731

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    47
  • Login 1

    Login 1

    52
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Book A Demo 3

    Book A Demo 3

    83

Explore more

Part of HextaUI — browse the full library on 21st.dev.