import { useId } from 'react'
import { Label } from '@/registry/new-york/ui/label'
import { Textarea } from '@/registry/new-york/ui/textarea'
const TextareaInvalidDemo = () => {
const id = useId()
return (
<div className='w-full max-w-xs space-y-2'>
<Label htmlFor={id}>Invalid Textarea</Label>
<Textarea aria-invalid placeholder='Type your feedback here' id={id} />
<p className='text-destructive text-xs'>Your feedback is useful for us.</p>
</div>
)
}
export default TextareaInvalidDemo
npx shadcn@latest add @shadcn-studio/textarea-05import { Textarea05 } from "@/components/textarea-05"<Textarea05 />