Class: Anchor::BadgeComponent
- Defined in:
- app/components/anchor/badge_component.rb
Constant Summary collapse
- VARIANT_DEFAULT =
:neutral
- VARIANT_MAPPINGS =
{ VARIANT_DEFAULT => "bg-neutral", :informational => "bg-accent-subdued", :success => "bg-success-subdued", :critical => "bg-critical-subdued", :warning => "bg-warning-subdued", }.freeze
- VARIANT_OPTIONS =
VARIANT_MAPPINGS.keys
Constants included from ViewHelper
Method Summary
Methods inherited from Component
Methods included from ViewHelper
#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes
Methods included from FetchOrFallbackHelper
Constructor Details
This class inherits a constructor from Anchor::Component