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