@hmiproject/helio-sdk
    Preparing search index...

    Function TextInput

    • Component that displays a text input field using the currently active HELIO theme.

      Parameters

      • props: {
            ariaLabel?: string;
            autoFocus?: boolean;
            defaultValue?: string;
            disabled?: boolean;
            invalid?: boolean;
            leftItems?: ReactNode;
            placeholder?: string;
            readOnly?: boolean;
            rightItems?: ReactNode;
            style?: CSSProperties;
            type?: HTMLInputTypeAttribute;
            value?: string;
            onBlur?(event: FocusEvent): void;
            onChange(nextValue: string): void;
            onFocus?(event: FocusEvent): void;
        }
        • OptionalariaLabel?: string

          Provide an accessible name for screen readers. Use this when the input has no visible label — e.g. a filter field marked only by a magnifying-glass icon. A placeholder alone does not name the input.

          `Filter messages`
          
        • OptionalautoFocus?: boolean
        • OptionaldefaultValue?: string
        • Optionaldisabled?: boolean
        • Optionalinvalid?: boolean
        • OptionalleftItems?: ReactNode
        • Optionalplaceholder?: string
        • OptionalreadOnly?: boolean
        • OptionalrightItems?: ReactNode
        • Optionalstyle?: CSSProperties
        • Optionaltype?: HTMLInputTypeAttribute
        • Optionalvalue?: string
        • onBlur?: function
        • onChange: function
        • onFocus?: function

      Returns Element

      1.0.0