Module: Klods::Components::Dl
- Included in:
- Builders
- Defined in:
- lib/klods/components/dl.rb
Instance Method Summary collapse
Instance Method Details
#dd(a = nil, b = nil) ⇒ Object
18 19 20 21 |
# File 'lib/klods/components/dl.rb', line 18 def dd(a = nil, b = nil) props, children = Core.normalize_args(a, b) Core.build(tag: "dd", base: "klods-dd", props: props, children: children) end |
#dl(a = nil, b = nil) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/klods/components/dl.rb', line 4 def dl(a = nil, b = nil) props, children = Core.normalize_args(a, b) Core.build( tag: "dl", base: "klods-dl", modifiers: {inline: "klods-dl--inline"}, props: props, children: children ) end |
#dt(a = nil, b = nil) ⇒ Object
13 14 15 16 |
# File 'lib/klods/components/dl.rb', line 13 def dt(a = nil, b = nil) props, children = Core.normalize_args(a, b) Core.build(tag: "dt", base: "klods-dt", props: props, children: children) end |