def text(label, name, **kwargs):
    """
    Creates a Dialog "text element".

    Other Parameters
    ----------------
    placeholder : str
        A string displayed as needed to help guide users in completing the
        element. 150 character maximum.

    subtype : str
        ['email', 'url', 'tel', 'number']

    max_length : int
        Maximum input length allowed for element. Up to 150 characters. Defaults
        to 150.

    min_length : int
        Integer	Minimum input length allowed for element. Up to 150
        characters. Defaults to 0.

    optional : bool
        Provide true when the form element is not required. By default, form
        elements are required.

    hint : str
        Helpful text provided to assist users in answering a question. Up to 150
        characters.

    value : str
        A default value for this field. Up to 150 characters.

    Returns
    -------
    dict
    """
    return {'type': 'text', 'label': label, 'name': name,
            **kwargs}