Sha256: 6abc4f565cf2251ff8ecb49df0ecb71f864b89d088825f64d5722b6806d0d7d4

Contents?: true

Size: 811 Bytes

Versions: 36

Compression:

Stored size: 811 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Ariadne
  module Layout
    module Grid
      module Item
        class Component < Ariadne::BaseComponent
          option :type, default: proc { :base }

          accepts_html_attributes do |html_attrs|
            html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style(:item), html_attrs[:class]].join(" "))
          end

          def blank?
            type == :blank
          end

          style :item do
            base do
              [
                "ariadne-flex",
                "ariadne-flex-col",
                "ariadne-gap-3",
                "ariadne-p-3",
                "ariadne-ps-4",
                "ariadne-rounded-xl",
              ]
            end
          end
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.92 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.91 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.90 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.89.1 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.89 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.88 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.87 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.9 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.8 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.7 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.6 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.5 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.4 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.3 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.2 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86.1 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.86 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.85 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.84 app/components/ariadne/layout/grid/item/component.rb
ariadne_view_components-0.0.83.3 app/components/ariadne/layout/grid/item/component.rb