Sha256: 5de194f2b0c47fb6b24a0280700fdb43d463e2af40bd2a2966d3dae6b4d5576c

Contents?: true

Size: 243 Bytes

Versions: 2

Compression:

Stored size: 243 Bytes

Contents

# frozen_string_literal: true

module Protos
  module Icon
    class HeroiconComponent < Component
      option :variant, reader: false, default: -> { :solid }

      def view_template
        public_send(@variant)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protos-icon-0.4.1 lib/protos/icon/heroicon_component.rb
protos-icon-0.4.0 lib/protos/icon/heroicon_component.rb