Textarea 18

PreviousNext

A textarea with disabled resize functionality for fixed dimensions

Docs
shadcn-studiocomponent

Preview

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

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

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

  return (
    <div className='w-full max-w-xs space-y-2'>
      <Label htmlFor={id}>No resize textarea</Label>
      <Textarea id={id} placeholder='Type your feedback here' className='[resize:none]' />
    </div>
  )
}

export default TextareaNoResizeDemo

Installation

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

Usage

import { Textarea18 } from "@/components/textarea-18"
<Textarea18 />