Sha256: 6292e4b74d95efaf9edd5b48e501dd399434b030f255f303589a86089a0fa9a9
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 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-background", "dark:ariadne-bg-slate-950", ] end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems