Sha256: 8bc69e55a85ff969d1315746ca69a8a53c13f90e9526b3db6bf1dc532cdbfc74
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
class ButtonComponent < ViewComponent::Base include Alveole::Concerns::Bem MODIFIERS = %i[small icon_only primary].freeze def initialize(url:, label:, icon: nil, modifiers: [], options: {}) super @url = url @label = label @icon = icon @options = options self.modifiers = modifiers end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-0.0.1 | lib/alveole/components/button_component.rb |