Sha256: 5fc5a71bf27414c00e850c9a278e4246861a56e7c9cfc0b465323fd23f1968ae

Contents?: true

Size: 841 Bytes

Versions: 8

Compression:

Stored size: 841 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Ariadne
  module UI
    module Card
      class Component < Ariadne::BaseComponent
        renders_one :header, Ariadne::UI::Card::Header::Component

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

        renders_one :footer, Ariadne::UI::Card::Footer::Component

        style do
          base do
            [
              "ariadne-rounded-lg",
              "ariadne-border",
              "ariadne-shadow-sm",
              "ariadne-bg-foreground",
              "dark:ariadne-bg-foreground-dark",
              "ariadne-text-content",
              "dark:ariadne-text-content-dark",
            ]
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.82 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.81 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.80.3 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.79.2 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.79.1 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.79 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.78 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.77 app/components/ariadne/ui/card/component.rb