Component
Textarea
A multi-line field matching Input.
stablev0.2.0 Chromium 103 ui-scale safe
Install
Copies the file into
components/ds/, with its registry dependencies and npm packages. See Installation for the one-time setup.bunx shadcn@3 add @fastrp/textareaExamples
Default
En az 200 karakter.
API
<Textarea />Takes the props of what it wrapsA multi-line field matching `Input`. It grows by dragging, not by content: `field-sizing` would do that, but it needs Chromium 123 and the game runs 103.
Dependencies
npm
- None
Registry
- @fastrp/input
- @fastrp/utils
Source
components/ds/textarea.tsxShowHide
import type * as React from 'react';
import { fieldClassName } from '@/components/ds/input';
import { cn } from '@/lib/utils';
// @fast-ds [email protected]
/**
* A multi-line field matching `Input`. It grows by dragging, not by content: `field-sizing` would
* do that, but it needs Chromium 123 and the game runs 103.
*/
function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
return (
<textarea
data-slot="textarea"
className={cn(fieldClassName, 'min-h-24 resize-y py-2.5 leading-relaxed', className)}
{...props}
/>
);
}
export { Textarea };