Module: Klods::Components::Prose
- Included in:
- Builders
- Defined in:
- lib/klods/components/prose.rb
Instance Method Summary collapse
- #lead(a = nil, b = nil) ⇒ Object
- #muted(a = nil, b = nil) ⇒ Object
- #prose(a = nil, b = nil) ⇒ Object
- #text_center(a = nil, b = nil) ⇒ Object
Instance Method Details
#lead(a = nil, b = nil) ⇒ Object
14 15 16 17 |
# File 'lib/klods/components/prose.rb', line 14 def lead(a = nil, b = nil) props, children = Core.normalize_args(a, b) Core.build(tag: "p", base: "klods-lead", props: props, children: children) end |
#muted(a = nil, b = nil) ⇒ Object
9 10 11 12 |
# File 'lib/klods/components/prose.rb', line 9 def muted(a = nil, b = nil) props, children = Core.normalize_args(a, b) Core.build(tag: "span", base: "klods-muted", props: props, children: children) end |
#prose(a = nil, b = nil) ⇒ Object
4 5 6 7 |
# File 'lib/klods/components/prose.rb', line 4 def prose(a = nil, b = nil) props, children = Core.normalize_args(a, b) Core.build(tag: "div", base: "klods-prose", props: props, children: children) end |
#text_center(a = nil, b = nil) ⇒ Object
19 20 21 22 |
# File 'lib/klods/components/prose.rb', line 19 def text_center(a = nil, b = nil) props, children = Core.normalize_args(a, b) Core.build(tag: "div", base: "klods-text-center", props: props, children: children) end |