"use client" import * as React from "react" import { Example, ExampleWrapper, } from "@/registry/bases/radix/components/example" import { Button } from "@/registry/bases/radix/ui/button" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/registry/bases/radix/ui/dialog" import { Field, FieldDescription, FieldError, FieldLabel, } from "@/registry/bases/radix/ui/field" import { Input } from "@/registry/bases/radix/ui/input" import { Item, ItemContent, ItemDescription, ItemTitle, } from "@/registry/bases/radix/ui/item" import { NativeSelect, NativeSelectOption, } from "@/registry/bases/radix/ui/native-select" import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, } from "@/registry/bases/radix/ui/select" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" export default function SelectExample() { return ( ) } function SelectBasic() { return ( ) } function SelectWithIcons() { return (
) } function SelectWithGroups() { return ( ) } function SelectLargeList() { return ( ) } function SelectSizes() { return (
) } function SelectWithButton() { return (
) } function SelectItemAligned() { return ( ) } function SelectWithField() { return ( Favorite Fruit Choose your favorite fruit from the list. ) } function SelectInvalid() { return (
Favorite Fruit
) } function SelectInline() { return (
Sort by Name Date Status
) } function SelectDisabled() { return ( ) } const plans = [ { name: "Starter", description: "Perfect for individuals getting started.", }, { name: "Professional", description: "Ideal for growing teams and businesses.", }, { name: "Enterprise", description: "Advanced features for large organizations.", }, ] function SelectPlan() { const [plan, setPlan] = React.useState(plans[0].name) const selectedPlan = plans.find((p) => p.name === plan) return ( ) } function SelectPlanItem({ plan }: { plan: (typeof plans)[number] }) { return ( {plan.name} {plan.description} ) } function SelectInDialog() { return ( Select Example Use the select below to choose a fruit. ) }