select
agileflow-projectquestorg/selectFreeComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/select.jsonSource
1"use client"23import * as React from "react"4import { Select as SelectPrimitive } from "radix-ui"56import { cn } from "@/registry/bases/radix/lib/utils"7import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"89function Select({10 ...props11}: React.ComponentProps<typeof SelectPrimitive.Root>) {12 return <SelectPrimitive.Root data-slot="select" {...props} />13}1415function SelectGroup({16 className,17 ...props18}: React.ComponentProps<typeof SelectPrimitive.Group>) {19 return (20 <SelectPrimitive.Group21 data-slot="select-group"22 className={cn("scroll-my-1 p-1", className)}23 {...props}24 />25 )26}2728function SelectValue({29 ...props30}: React.ComponentProps<typeof SelectPrimitive.Value>) {31 return <SelectPrimitive.Value data-slot="select-value" {...props} />32}3334function SelectTrigger({35 className,36 size = "default",37 children,38 ...props39}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {40 size?: "sm" | "default"41}) {42 return (43 <SelectPrimitive.Trigger44 data-slot="select-trigger"45 data-size={size}46 className={cn(47 "border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",48 className49 )}50 {...props}51 >52 {children}53 <SelectPrimitive.Icon asChild>54 <IconPlaceholder55 lucide="ChevronDownIcon"56 tabler="IconSelector"57 hugeicons="UnfoldMoreIcon"58 phosphor="CaretDownIcon"59 className="text-muted-foreground size-4 pointer-events-none"60 />61 </SelectPrimitive.Icon>62 </SelectPrimitive.Trigger>63 )64}6566function SelectContent({67 className,68 children,69// … truncated
Files it writes
More from shadcn/ui
All 133 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps |
