app/components/bs5/badge_component.rb in bs5-0.0.8 vs app/components/bs5/badge_component.rb in bs5-0.0.9

- old
+ new

@@ -1,8 +1,10 @@ # frozen_string_literal: true module Bs5 class BadgeComponent < ViewComponent::Base + STYLES = %i[primary secondary success danger warning info light dark].freeze + attr_reader :text, :style include ActiveModel::Validations validates :style, style: true