# All files / text-field text-field.props.ts

100% Statements 14/14
100% Branches 2/2
100% Functions 1/1
100% Lines 14/14

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64

    1x

    1x
    1x

    1x

    1x
    1x
    1x

    1x
    1x
    1x
    1x

    1x
    1x

    1x

     import * as React from "react";
    import { IManagedClasses, ITextFieldClassNameContract } from "@microsoft/fast-components-class-name-contracts-base";

    export enum TextFieldType {
        /**
         * @deprecated as of v2.3.0
         * Will be deleted in version 3.0.
         */
        date = "date",
        email = "email",
        /**
         * @deprecated as of v2.3.0
         * Will be deleted in version 3.0.
         */
        hidden = "hidden",
        /**
         * @deprecated as of v2.3.0
         * Will be deleted in version 3.0.
         */
        month = "month",
        number = "number",
        password = "password",
        /**
         * @deprecated as of v2.3.0
         * Will be deleted in version 3.0.
         */
        range = "range",
        search = "search",
        tel = "tel",
        text = "text",
        /**
         * @deprecated as of v2.3.0
         * Will be deleted in version 3.0.
         */
        time = "time",
        url = "url",
        /**
         * @deprecated as of v2.3.0
         * Will be deleted in version 3.0.
         */
        week = "week"
    }

    export interface ITextFieldHandledProps {
        /**
         * The disabled state
         */
        disabled?: boolean;

        /**
         * Placeholder Text for input field
         */
        placeholder?: string;

        /**
         * The text field input type
         */
        type?: TextFieldType;
    }

    export interface ITextFieldUnhandledProps extends React.InputHTMLAttributes<HTMLInputElement> {}
    export interface ITextFieldManagedClasses extends IManagedClasses<ITextFieldClassNameContract> {}
    export type TextFieldProps = ITextFieldHandledProps & ITextFieldUnhandledProps & ITextFieldManagedClasses;