AccrueAdmin.Components.Textarea (accrue_admin v1.5.0)

Copy Markdown View Source

Shared textarea form control for mounted admin pages.

Follows the same ax-field wrapper pattern as Input. Emits aria-invalid and aria-describedby for screen-reader error linking. Error paragraph IDs are indexed to avoid duplicate id attributes when multiple error messages are present (D-08 fix).

Summary

Functions

textarea(assigns)

Attributes

  • id (:string) (required)
  • name (:string) (required)
  • label (:string) (required)
  • value (:string) - Defaults to nil.
  • rows (:integer) - Defaults to 4.
  • help_text (:string) - Defaults to nil.
  • errors (:list) - Defaults to [].
  • Global attributes are accepted. Supports all globals plus: ["disabled", "placeholder", "readonly", "phx-debounce", "phx-hook", "required"].