bgrosse-midokura/composable-form/1.0.0

Form.Base.TextField

This module contains a reusable TextField type.

Definition

type alias TextField values =
Field Attributes String values

Represents a text field.

Note: You should not need to care about this unless you are creating your own custom fields or writing custom view code.

type alias Attributes =
{ label : String
, placeholder : String
, htmlAttributes : List ( String, String )
}

The attributes of a TextField.

You need to provide these to:

Helpers

(TextField values -> field)
-> FieldConfig Attributes String values output
-> Form values output field

Builds a Form with a single TextField.

Note: You should not need to care about this unless you are creating your own custom fields.