hecrj/composable-form/1.0.3

NOTE: this package is not compatible with Elm 0.19.1

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 your own form renderer.

type alias Attributes =
{ label : String
, placeholder : 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.