Class: ListDescriptionComponent
- Defined in:
- app/components/list_description_component.rb
Overview
ListDescription — description text within a ListItem or ListContent.
Usage:
ListItem {
ListContent {
ListHeader { text "Krolewskie Jadlo" }
ListDescription { text "An excellent polish restaurant." }
}
}
Constant Summary
Constants inherited from Component
Instance Method Summary collapse
Methods inherited from Component
default, #initialize, #render_in, slot
Constructor Details
This class inherits a constructor from Component
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'app/components/list_description_component.rb', line 14 def to_s tag.div(**(class: "description")) { @content } end |