AccrueAdmin.Components.Input (accrue_admin v0.3.0)

Copy Markdown View Source

Shared text-like form input for mounted admin pages.

Summary

Functions

input(assigns)

Attributes

  • id (:string) (required)
  • name (:string) (required)
  • label (:string) (required)
  • type (:string) - Defaults to "text".
  • value (:string) - Defaults to nil.
  • placeholder (:string) - Defaults to nil.
  • help_text (:string) - Defaults to nil.
  • errors (:list) - Defaults to [].
  • Global attributes are accepted. Supports all globals plus: ["autocomplete", "disabled", "inputmode", "maxlength", "minlength", "pattern", "phx-debounce", "phx-hook", "phx-target", "required", "step"].