snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
30
apps/v4/registry/new-york-v4/examples/field-textarea.tsx
Normal file
30
apps/v4/registry/new-york-v4/examples/field-textarea.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
import {
|
||||
Field,
|
||||
FieldDescription,
|
||||
FieldGroup,
|
||||
FieldLabel,
|
||||
FieldSet,
|
||||
} from "@/registry/new-york-v4/ui/field"
|
||||
import { Textarea } from "@/registry/new-york-v4/ui/textarea"
|
||||
|
||||
export default function FieldTextarea() {
|
||||
return (
|
||||
<div className="w-full max-w-md">
|
||||
<FieldSet>
|
||||
<FieldGroup>
|
||||
<Field>
|
||||
<FieldLabel htmlFor="feedback">Feedback</FieldLabel>
|
||||
<Textarea
|
||||
id="feedback"
|
||||
placeholder="Your feedback helps us improve..."
|
||||
rows={4}
|
||||
/>
|
||||
<FieldDescription>
|
||||
Share your thoughts about our service.
|
||||
</FieldDescription>
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
</FieldSet>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user