Sha256: c0aaebad12aeb8a2ec8189bae102a99abbf13f25c29b65640f30816085522050

Contents?: true

Size: 744 Bytes

Versions: 2

Compression:

Stored size: 744 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-white",
              "dark:ariadne-bg-slate-950",
            ]
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.74.1 app/components/ariadne/ui/card/component.rb
ariadne_view_components-0.0.74 app/components/ariadne/ui/card/component.rb