Textarea 21

PreviousNext

A disabled textarea in non-interactive state for form display

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/textarea/textarea-21.tsx
import { useId } from 'react'

import { Label } from '@/registry/new-york/ui/label'
import { Textarea } from '@/registry/new-york/ui/textarea'

const TextareaDisabledDemo = () => {
  const id = useId()

  return (
    <div className='w-full max-w-xs space-y-2'>
      <Label htmlFor={id}>Disabled textarea</Label>
      <Textarea placeholder='Type your feedback here' disabled id={id} />
    </div>
  )
}

export default TextareaDisabledDemo

Installation

npx shadcn@latest add @shadcn-studio/textarea-21

Usage

import { Textarea21 } from "@/components/textarea-21"
<Textarea21 />