Sha256: a57dbd7517bf250c2abafe49f59ea42fa4028044067aeac22d549c1d851279b4

Contents?: true

Size: 828 Bytes

Versions: 29

Compression:

Stored size: 828 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Ariadne
  module Layout
    module Narrow
      class Component < Ariadne::BaseComponent
        renders_one :footer, Ariadne::BaseComponent::ACCEPT_ANYTHING

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

        style(:container) do
          base do
            [
              "ariadne-bg-background",
              "dark:ariadne-bg-background-dark",
              "ariadne-text-content",
              "dark:ariadne-text-content-dark",
              "ariadne-grow",
              "ariadne-h-screen",
              "ariadne-py-6",
              "ariadne-px-1",
            ]
          end
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.93.2 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.93.1 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.93 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.92 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.91 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.90 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.89.1 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.89 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.88 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.87 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.9 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.8 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.7 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.6 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.5 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.4 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.3 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.2 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86.1 app/components/ariadne/layout/narrow/component.rb
ariadne_view_components-0.0.86 app/components/ariadne/layout/narrow/component.rb