Sha256: 1124c544125e38850746e726084c106cfb996e328cbf592ea554c4528a1cbf73
Contents?: true
Size: 1.48 KB
Versions: 26
Compression:
Stored size: 1.48 KB
Contents
# typed: false # frozen_string_literal: true module Ariadne module UI module Card module Header class Component < Ariadne::BaseComponent renders_one :title, lambda { |type: :subheading, **options| options[:type] ||= type options[:html_attrs] ||= {} options[:html_attrs][:class] ||= "" options[:html_attrs][:class] = [ "ariadne-grow", "ariadne-leading-none", options[:html_attrs][:class], ] Ariadne::UI::Typography::Component.new(**options) } renders_one :description, lambda { |type: :muted, **options| options[:type] ||= type Ariadne::UI::Typography::Component.new(**options) } accepts_html_attributes do |html_attrs| html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style, html_attrs[:class]].join(" ")) end style do base do [ "ariadne-flex", "ariadne-flex-col", "ariadne-space-y-1.5", "ariadne-p-6", ] end end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems