Sha256: 39f634e8c906f11f7dcbf609ed475cbcd20da2bb41ea1bb5e1d948a7b593ce13
Contents?: true
Size: 1.25 KB
Versions: 8
Compression:
Stored size: 1.25 KB
Contents
require_relative 'append' module Voom module Presenters module DSL module Components module Mixins module Typography include Mixins::Append def display(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :display, text: text, context: context, **attributes, &block) end alias heading display def headline(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :headline, text: text, context: context, **attributes, &block) end def title(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :title, text: text, context: context, **attributes, &block) end def subheading(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :subheading, text: text, context: context, **attributes, &block) end def body(*text, **attributes, &block) self << Components::Typography.new(parent: self, type: :body, text: text, context: context, **attributes, &block) end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems