Interface TextInputProps

interface TextInputProps {
    attributes?: Record<string, string>;
    autoFocus?: boolean;
    classNames?: string[];
    description?: ExtendedHTMLElement;
    fireModifierAndEnterKeyPress?: (() => void);
    icon?: MynahIcons | "q" | "menu" | "minus" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "external" | "cancel" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "copy" | "cursor-insert" | "text-select" | "revert" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "help" | "message" | "trash" | "transform";
    label?: string | ExtendedHTMLElement | HTMLElement;
    mandatory?: boolean;
    onChange?: ((value) => void);
    onKeyPress?: ((event) => void);
    placeholder?: string;
    testId?: string;
    type?: "number" | "email" | "text";
    validationPatterns?: {
        operator?: "and" | "or";
        patterns: ValidationPattern[];
    };
    value?: string;
}

Properties

attributes?: Record<string, string>
autoFocus?: boolean
classNames?: string[]
description?: ExtendedHTMLElement
fireModifierAndEnterKeyPress?: (() => void)

Type declaration

    • (): void
    • Returns void

icon?: MynahIcons | "q" | "menu" | "minus" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "external" | "cancel" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "copy" | "cursor-insert" | "text-select" | "revert" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "help" | "message" | "trash" | "transform"
label?: string | ExtendedHTMLElement | HTMLElement
mandatory?: boolean
onChange?: ((value) => void)

Type declaration

    • (value): void
    • Parameters

      • value: string

      Returns void

onKeyPress?: ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: KeyboardEvent

      Returns void

placeholder?: string
testId?: string
type?: "number" | "email" | "text"
validationPatterns?: {
    operator?: "and" | "or";
    patterns: ValidationPattern[];
}

Type declaration

value?: string