Select
agileflow-projectquestorg/select-exampleFreeExample
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-example.jsonSource
1"use client"23import * as React from "react"45import {6 Example,7 ExampleWrapper,8} from "@/registry/bases/radix/components/example"9import { Button } from "@/registry/bases/radix/ui/button"10import {11 Dialog,12 DialogContent,13 DialogDescription,14 DialogHeader,15 DialogTitle,16 DialogTrigger,17} from "@/registry/bases/radix/ui/dialog"18import {19 Field,20 FieldDescription,21 FieldError,22 FieldLabel,23} from "@/registry/bases/radix/ui/field"24import { Input } from "@/registry/bases/radix/ui/input"25import {26 Item,27 ItemContent,28 ItemDescription,29 ItemTitle,30} from "@/registry/bases/radix/ui/item"31import {32 NativeSelect,33 NativeSelectOption,34} from "@/registry/bases/radix/ui/native-select"35import {36 Select,37 SelectContent,38 SelectGroup,39 SelectItem,40 SelectLabel,41 SelectSeparator,42 SelectTrigger,43 SelectValue,44} from "@/registry/bases/radix/ui/select"45import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"4647export default function SelectExample() {48 return (49 <ExampleWrapper>50 <SelectBasic />51 <SelectWithIcons />52 <SelectWithGroups />53 <SelectLargeList />54 <SelectSizes />55 <SelectPlan />56 <SelectWithButton />57 <SelectItemAligned />58 <SelectWithField />59 <SelectInvalid />60 <SelectInline />61 <SelectDisabled />62 <SelectInDialog />63 </ExampleWrapper>64 )65}6667function SelectBasic() {68 return (69 <Example title="Basic">70 <Select>71 <SelectTrigger>72 <SelectValue placeholder="Select a fruit" />73 </SelectTrigger>74 <SelectContent>75 <SelectGroup>76 <SelectItem value="apple">Apple</SelectItem>77 <SelectItem value="banana">Banana</SelectItem>78 <SelectItem value="blueberry">Blueberry</SelectItem>79 <SelectItem value="grapes" disabled>80 Grapes81 </SelectItem>82 <SelectItem value="pineapple">Pineapple</SelectItem>83 </SelectGroup>84 </SelectContent>85 </Select>86 </Example>87 )88}8990function SelectWithIcons() {91 return (92 <Example title="With Icons">93 <div className="flex flex-col gap-4">94 <Select>95 <SelectTrigger size="sm">96 <SelectValue97 placeholder={98 <>99 <IconPlaceholder100 lucide="ChartLineIcon"101 tabler="IconChartLine"102 hugeicons="Chart03Icon"103 phosphor="ChartLineIcon"104// … truncated
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 133 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion-example | shadcn/ui | Examples | Free | no deps | |
| Alert Dialogalert-dialog-example | shadcn/ui | Examples | Free | no deps | |
| Alertalert-example | shadcn/ui | Examples | Free | no deps | |
| Aspect Ratioaspect-ratio-example | shadcn/ui | Examples | Free | no deps | |
| Avataravatar-example | shadcn/ui | Examples | Free | no deps | |
| Badgebadge-example | shadcn/ui | Examples | Free | no deps | |
| Breadcrumbbreadcrumb-example | shadcn/ui | Examples | Free | no deps | |
| Buttonbutton-example | shadcn/ui | Examples | Free | no deps |
