Sha256: 693b34bb22f34ea17f8d87df0c5f5951813c960b6a5e5dfbf5eb851a24bd90c2
Contents?: true
Size: 911 Bytes
Versions: 7
Compression:
Stored size: 911 Bytes
Contents
# typed: false # frozen_string_literal: true module Ariadne module UI module Typography class Component < Ariadne::BaseComponent option :type accepts_html_attributes do |html_attrs| html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style(type: @type), html_attrs[:class]].join(" ")) end def tag_name case type when :heading :h1 else :span end end style do variants do type do heading do [ "ariadne-scroll-m-20", "ariadne-text-4xl", "ariadne-font-extrabold", "ariadne-tracking-tight", "lg:ariadne-text-5xl", ] end end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems