Class: Anchor::BadgeComponent

Inherits:
Component
  • Object
show all
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

ViewHelper::ANCHOR_HELPERS

Method Summary

Methods inherited from Component

generate_id, #initialize

Methods included from ViewHelper

#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes

Methods included from FetchOrFallbackHelper

#fetch_or_fallback

Constructor Details

This class inherits a constructor from Anchor::Component