@moxijs/ui - v0.3.5
    Preparing search index...

    Interface UITextAreaProps

    Props for configuring a UITextArea

    interface UITextAreaProps {
        backgroundColor?: number;
        borderRadius?: number;
        defaultValue?: string;
        disabled?: boolean;
        fontFamily?: string;
        fontSize?: number;
        fontType?: FontType;
        height?: number;
        lineHeight?: number;
        maxLength?: number;
        onChange?: (value: string) => void;
        placeholder?: string;
        placeholderColor?: number;
        readOnly?: boolean;
        rows?: number;
        textColor?: number;
        themeResolver?: ThemeResolver;
        value?: string;
        width?: number;
    }
    Index

    Properties

    backgroundColor?: number

    Background color (overrides theme)

    borderRadius?: number

    Border radius

    defaultValue?: string

    Default value (uncontrolled)

    disabled?: boolean

    Whether the textarea is disabled

    fontFamily?: string

    Font family name. For canvas: Any CSS font family (e.g., 'Arial', 'Helvetica') For MSDF/bitmap: Must match the loaded font's family name

    fontSize?: number

    Font size

    fontType?: FontType

    Font rendering type.

    • 'canvas' (default): Standard PIXI.Text with DPR scaling
    • 'msdf': Multi-channel Signed Distance Field for crisp text at any scale
    • 'bitmap': Pre-rendered bitmap font atlas

    Note: Text areas currently only support 'canvas' mode for cursor positioning.

    height?: number

    Height of the textarea

    lineHeight?: number

    Line height multiplier (e.g., 1.5 means 1.5x the font size)

    maxLength?: number

    Maximum character length

    onChange?: (value: string) => void

    Change callback

    placeholder?: string

    Placeholder text when empty

    placeholderColor?: number

    Placeholder text color (overrides theme)

    readOnly?: boolean

    Whether the textarea is read-only (displays text but not editable)

    rows?: number

    Number of visible rows

    textColor?: number

    Text color (overrides theme)

    themeResolver?: ThemeResolver

    Optional ThemeResolver for automatic color resolution

    value?: string

    Current value (controlled)

    width?: number

    Width of the textarea