import { useId } from 'react'
import { Label } from '@/registry/new-york/ui/label'
import { Textarea } from '@/registry/new-york/ui/textarea'
const TextareaReadOnlyDemo = () => {
const id = useId()
return (
<div className='w-full max-w-xs space-y-2'>
<Label htmlFor={id}>Read only textarea</Label>
<Textarea
className='read-only:bg-muted'
defaultValue='Read only text'
placeholder='Type your feedback here'
id={id}
readOnly
/>
</div>
)
}
export default TextareaReadOnlyDemo
npx shadcn@latest add @shadcn-studio/textarea-20import { Textarea20 } from "@/components/textarea-20"<Textarea20 />