Sha256: 5ea403f79e813913769c4e5cb36a8027675414a906bffa7f0813f8c89156b682
Contents?: true
Size: 425 Bytes
Versions: 12
Compression:
Stored size: 425 Bytes
Contents
module Coco class Badge < Coco::Component include Concerns::AcceptsOptions include Concerns::AcceptsTheme THEMES = ["neutral-dark", "neutral-light", "neutral-muted", "primary"] accepts_option :size, from: %i[sm md], default: :md accepts_option :theme, from: THEMES, default: "neutral-dark" attr_reader :icon_name def initialize(icon: nil, **kwargs) @icon_name = icon end end end
Version data entries
12 entries across 12 versions & 1 rubygems