snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
22
apps/v4/examples/radix/input-required.tsx
Normal file
22
apps/v4/examples/radix/input-required.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import {
|
||||
Field,
|
||||
FieldDescription,
|
||||
FieldLabel,
|
||||
} from "@/styles/radix-nova/ui/field"
|
||||
import { Input } from "@/styles/radix-nova/ui/input"
|
||||
|
||||
export function InputRequired() {
|
||||
return (
|
||||
<Field>
|
||||
<FieldLabel htmlFor="input-required">
|
||||
Required Field <span className="text-destructive">*</span>
|
||||
</FieldLabel>
|
||||
<Input
|
||||
id="input-required"
|
||||
placeholder="This field is required"
|
||||
required
|
||||
/>
|
||||
<FieldDescription>This field must be filled out.</FieldDescription>
|
||||
</Field>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user