mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { Field, FieldDescription, FieldLabel } from "@/examples/radix/ui/field"
|
|
import {
|
|
Select,
|
|
SelectContent,
|
|
SelectGroup,
|
|
SelectItem,
|
|
SelectTrigger,
|
|
SelectValue,
|
|
} from "@/examples/radix/ui/select"
|
|
|
|
export default function FieldSelect() {
|
|
return (
|
|
<Field className="w-full max-w-xs">
|
|
<FieldLabel>Department</FieldLabel>
|
|
<Select>
|
|
<SelectTrigger>
|
|
<SelectValue placeholder="Choose department" />
|
|
</SelectTrigger>
|
|
<SelectContent>
|
|
<SelectGroup>
|
|
<SelectItem value="engineering">Engineering</SelectItem>
|
|
<SelectItem value="design">Design</SelectItem>
|
|
<SelectItem value="marketing">Marketing</SelectItem>
|
|
<SelectItem value="sales">Sales</SelectItem>
|
|
<SelectItem value="support">Customer Support</SelectItem>
|
|
<SelectItem value="hr">Human Resources</SelectItem>
|
|
<SelectItem value="finance">Finance</SelectItem>
|
|
<SelectItem value="operations">Operations</SelectItem>
|
|
</SelectGroup>
|
|
</SelectContent>
|
|
</Select>
|
|
<FieldDescription>
|
|
Select your department or area of work.
|
|
</FieldDescription>
|
|
</Field>
|
|
)
|
|
}
|