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

text_field(assigns)

Attributes

  • field (Phoenix.HTML.FormField) (required)
  • label (:string) - Defaults to nil.
  • placeholder (:string) - Defaults to nil.
  • required (:boolean) - Defaults to false.
  • hint (:string) - Defaults to nil.
  • errors (:list) - Defaults to [].
  • class (:string) - Defaults to nil.
  • wrapper_class (:string) - Defaults to nil.
  • type (:string) - Defaults to "text".
  • color (:string) - Defaults to nil.
  • variant (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["autocomplete", "disabled", "readonly", "maxlength", "minlength", "pattern"].