AccrueAdmin.Components.Button (accrue_admin v0.3.1)

Copy Markdown View Source

Shared button primitive for admin actions and links.

Summary

Functions

button(assigns)

Attributes

  • variant (:string) - Defaults to "primary".
  • type (:string) - Defaults to "button".
  • href (:string) - Defaults to nil.
  • disabled (:boolean) - Defaults to false.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["method", "name", "value", "form", "phx-click", "phx-submit", "phx-value-id", "aria-label"].

Slots

  • inner_block (required)