Sha256: fdc19a00a09e9e37b080cb60b327162ca401e03874c7dd3e270cbfce44172f68

Contents?: true

Size: 325 Bytes

Versions: 22

Compression:

Stored size: 325 Bytes

Contents

module Spina
  module Forms
    class LabelComponent < ApplicationComponent
      attr_reader :f, :method
      
      def initialize(f, method)
        @f = f
        @method = method
      end
      
      def call
        f.label method, class: "font-medium text-sm text-gray-700 block"
      end
      
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spina-2.12.0 app/components/spina/forms/label_component.rb
spina-2.11.0 app/components/spina/forms/label_component.rb
spina-2.10.0 app/components/spina/forms/label_component.rb
spina-2.9.1 app/components/spina/forms/label_component.rb
spina-2.9.0 app/components/spina/forms/label_component.rb
spina-2.8.1 app/components/spina/forms/label_component.rb
spina-2.8.0 app/components/spina/forms/label_component.rb
spina-2.7.0 app/components/spina/forms/label_component.rb
spina-2.6.2 app/components/spina/forms/label_component.rb
spina-2.6.1 app/components/spina/forms/label_component.rb
spina-2.6.0 app/components/spina/forms/label_component.rb
spina-2.5.0 app/components/spina/forms/label_component.rb
spina-2.4.0 app/components/spina/forms/label_component.rb
spina-2.3.5 app/components/spina/forms/label_component.rb
spina-2.3.4 app/components/spina/forms/label_component.rb
spina-2.3.3 app/components/spina/forms/label_component.rb
spina-2.3.2 app/components/spina/forms/label_component.rb
spina-2.3.1 app/components/spina/forms/label_component.rb
spina-2.3.0 app/components/spina/forms/label_component.rb
spina-2.2.0 app/components/spina/forms/label_component.rb