OctantisWeb.Components.Polaris.Badge (octantis v0.1.11)

View Source

Cards are used to group similar concepts and tasks together for merchants to scan, read, and get things done. It displays content in a familiar and recognizable style. ## Examples

  <.badge>
    <:icon><Icons.plus_circle /></:icon>
  </.badge>

See

Summary

Functions

Cards are used to group similar concepts and tasks together for merchants to scan, read, and get things done. It displays content in a familiar and recognizable style. ## Examples

Functions

badge(assigns)

Cards are used to group similar concepts and tasks together for merchants to scan, read, and get things done. It displays content in a familiar and recognizable style. ## Examples

  <.badge>
    <:icon><Icons.plus_circle /></:icon>
  </.badge>

See

Attributes

  • accessibility_label (:string)
  • tone (:string) - Must be one of "info", "success", "warning", "critical", "attention", "new", "magic", "info-strong", "success-strong", "warning-strong", "critical-strong", "attention-strong", "read-only", or "enabled".
  • size (:string) - Must be one of "small", "medium", or "large".
  • progress (:string) - Must be one of "incomplete", "partiallyComplete", or "complete".
  • Global attributes are accepted.

Slots

  • icon
  • inner_block

badge_build_class(attrs)

badge_class(arg)

progress_icon(assigns)