ObanChoreWeb.CoreComponents (ObanChore v0.1.0-beta.2)

Copy Markdown View Source

Provides UI components for the ObanChore dashboard.

Summary

Functions

Renders an input with label and error messages.

Functions

input(assigns)

Renders an input with label and error messages.

Attributes

  • id (:any) - Defaults to nil.
  • name (:any)
  • label (:string) - Defaults to nil.
  • value (:any)
  • type (:string) - Defaults to "text".
  • field (Phoenix.HTML.FormField)
  • errors (:list) - Defaults to [].
  • default (:any) - Defaults to nil.
  • options (:list) - Defaults to [].
  • prompt (:string) - Defaults to nil.
  • Global attributes are accepted.

label(assigns)

Attributes

  • for (:string) - Defaults to nil.

Slots

  • inner_block (required)