Pilates
    Preparing search index...

    Interface TextAreaProps

    interface TextAreaProps {
        autoFocus?: boolean;
        focus?: boolean;
        focusId?: string;
        onChange: (value: string) => void;
        placeholder?: string;
        value: string;
    }
    Index

    Properties

    autoFocus?: boolean

    When focusId is set, take focus on mount if no other focusable currently holds it.

    focus?: boolean

    Default true. When false, does not consume keystrokes and does not render a cursor. Ignored when focusId is set — focus state then comes from the useFocus registration instead.

    focusId?: string

    Register this textarea with useFocus(id) so the surrounding <FocusProvider> (auto-installed by render()) can route Tab / Shift+Tab cycling through it.

    onChange: (value: string) => void

    Called on every value change. Required.

    placeholder?: string

    Rendered with <Text dim> when value === ''.

    value: string

    Controlled value. May contain \n line separators. Required.