Sha256: 51ffd309dd250bba3672ccc2f4259ab682d77ba1ee63c3401b7fd0974bddb6ad
Contents?: true
Size: 550 Bytes
Versions: 25
Compression:
Stored size: 550 Bytes
Contents
module Coco class Stamp < Coco::Component include Concerns::AcceptsOptions include Concerns::AcceptsTheme THEMES = [ "positive", "negative", "warning", "info" ] DEFAULT_THEME = "info" accepts_option :size, from: %i[xs sm md lg], default: :md accepts_option :style, from: %i[subtle vivid inverse compact], default: :subtle accepts_option :theme, from: THEMES, default: DEFAULT_THEME attr_reader :icon_name def initialize(icon:, **kwargs) @icon_name = icon end end end
Version data entries
25 entries across 25 versions & 1 rubygems