This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
native-select
ondo-ui/native-selectRemovedComponent
A styled native HTML select element with consistent design system integration.
Install it
npx shadcn@latest add https://ui.ondo.dou.so/r/native-select.jsonSource
1import * as React from "react"23import { cn } from "@/lib/utils"4import { IconSelector } from "@tabler/icons-react"56type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {7 size?: "xs" | "sm" | "default" | "lg" | "xl" | "2xl"8}910function NativeSelect({11 className,12 size = "default",13 ...props14}: NativeSelectProps) {15 return (16 <div17 className={cn(18 "group/native-select relative w-fit has-[select:disabled]:opacity-50",19 className20 )}21 data-slot="native-select-wrapper"22 data-size={size}23 >24 <select25 data-slot="native-select"26 data-size={size}27 className="h-9 w-full min-w-0 appearance-none rounded-md border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=lg]:h-10 data-[size=sm]:h-8 data-[size=xs]:h-6 data-[size=xs]:pr-7 data-[size=xs]:pl-2 data-[size=xs]:text-xs data-[size=xl]:h-11 data-[size=xl]:rounded-lg data-[size=xl]:pr-9 data-[size=xl]:pl-3 data-[size=xl]:text-base data-[size=2xl]:h-13 data-[size=2xl]:rounded-xl data-[size=2xl]:pr-10 data-[size=2xl]:pl-4 data-[size=2xl]:text-lg dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"28 {...props}29 />30 <IconSelector className="pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none group-data-[size=xs]/native-select:right-2 group-data-[size=xs]/native-select:size-3 group-data-[size=xl]/native-select:right-3 group-data-[size=xl]/native-select:size-5 group-data-[size=2xl]/native-select:right-4 group-data-[size=2xl]/native-select:size-6" aria-hidden="true" data-slot="native-select-icon" />31 </div>32 )33}3435function NativeSelectOption({36 className,37 ...props38}: React.ComponentProps<"option">) {39 return (40 <option41 data-slot="native-select-option"42 className={cn("bg-[Canvas] text-[CanvasText]", className)}43 {...props}44 />45 )46}4748function NativeSelectOptGroup({49 className,50 ...props51}: React.ComponentProps<"optgroup">) {52 return (53 <optgroup54 data-slot="native-select-optgroup"55// … truncated
What it pulls in
npm packages
Other registry items
