Class: ListDescriptionComponent

Inherits:
Component show all
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

Component::HTML_OPTIONS

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_sObject



14
15
16
# File 'app/components/list_description_component.rb', line 14

def to_s
  tag.div(**merge_html_options(class: "description")) { @content }
end