mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-25 13:46:07 +00:00
23 lines
535 B
TypeScript
23 lines
535 B
TypeScript
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
} from "@/styles/base-nova/ui/field"
|
|
import { Input } from "@/styles/base-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>
|
|
)
|
|
}
|