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