JumarWeb.BadgeComponents (Jumar v0.1.0)

View Source

Provides badge components.

Summary

Functions

badge(assigns)

Attributes

  • color (:string) - Defaults to "zinc". Must be one of "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow", or "zinc".
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

badge_button(assigns)

Attributes

  • color (:string) - Defaults to "zinc". Must be one of "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow", or "zinc".
  • class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["href", "navigate", "patch", "method"].

Slots

  • inner_block (required)