mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-29 23:55:02 +00:00
31 lines
849 B
TypeScript
31 lines
849 B
TypeScript
import { Field, FieldError, FieldLabel } from "@/styles/radix-nova/ui/field"
|
|
import {
|
|
Select,
|
|
SelectContent,
|
|
SelectGroup,
|
|
SelectItem,
|
|
SelectTrigger,
|
|
SelectValue,
|
|
} from "@/styles/radix-nova/ui/select"
|
|
|
|
export function SelectInvalid() {
|
|
return (
|
|
<Field data-invalid className="w-full max-w-48">
|
|
<FieldLabel>Fruit</FieldLabel>
|
|
<Select>
|
|
<SelectTrigger aria-invalid>
|
|
<SelectValue placeholder="Select a fruit" />
|
|
</SelectTrigger>
|
|
<SelectContent>
|
|
<SelectGroup>
|
|
<SelectItem value="apple">Apple</SelectItem>
|
|
<SelectItem value="banana">Banana</SelectItem>
|
|
<SelectItem value="blueberry">Blueberry</SelectItem>
|
|
</SelectGroup>
|
|
</SelectContent>
|
|
</Select>
|
|
<FieldError>Please select a fruit.</FieldError>
|
|
</Field>
|
|
)
|
|
}
|