MishkaChelekom.Components.TextField
(AshFormBuilder v0.4.0)
View Source
Functional fallback for MishkaChelekom TextField. Renders a real
<label> + <input> bound to the given form field. Generate the
styled component with mix mishka.ui.gen.component text_field to
override.
Summary
Functions
Attributes
field(Phoenix.HTML.FormField) (required)label(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.required(:boolean) - Defaults tofalse.hint(:string) - Defaults tonil.errors(:list) - Defaults to[].class(:string) - Defaults tonil.wrapper_class(:string) - Defaults tonil.type(:string) - Defaults to"text".color(:string) - Defaults tonil.variant(:string) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["autocomplete", "disabled", "readonly", "maxlength", "minlength", "pattern"].