Back to Primitives

TextArea

1:1Forms
View on GitHub

Multi-line text input.

Example
Usage
import { TextArea } from '@/components/polaris';

function Example() {
    return <TextArea label="Description" placeholder="Enter a description" rows={4} />;
}
Component Source
import { forwardRef, createElement } from 'react';

type Props = JSX.IntrinsicElements['s-text-area'];

/**
 * TextArea component - multi-line text input.
 *
 * @example
 * <TextArea label="Description" placeholder="Enter a description" rows={4} />
 */
export const TextArea = forwardRef<HTMLElement, Props>((props, ref) => createElement('s-text-area', { ref, ...props }));

TextArea.displayName = 'TextArea';