hecrj / composable-form / Form.Base.TextField

This module contains a reusable TextField type.

Definition


type alias TextField values =
Form.Field.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 
}

The attributes of a TextField.

You need to provide these to:

Helpers

form : (TextField values -> field) -> Form.Base.FieldConfig Attributes String values output -> Form.Base.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.