Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
Textarea
Textarea using the host's multiline input presentation.
Import
import { Textarea } from "@dartwic/interface-sdk/ui";Declaration
export const Textarea: HostComponent<TextareaProps>;TextareaProps
Controlled multiline text field.
export interface TextareaProps extends HostComponentProps {
value?: string;
defaultValue?: string;
onChange?: HostEventHandler;
placeholder?: string;
disabled?: boolean;
rows?: number;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
value | string | Optional | |
defaultValue | string | Optional | |
onChange | HostEventHandler | Optional | |
placeholder | string | Optional | |
disabled | boolean | Optional | |
rows | number | Optional | |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |