Class: FeedComponent
- Defined in:
- app/components/feed_component.rb
Overview
Feed — activity/event feed.
Usage:
Feed(size: :small) {
text '<div class="event">...</div>'.html_safe
}
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
13 14 15 16 17 18 19 20 21 |
# File 'app/components/feed_component.rb', line 13 def to_s classes = class_names( "ui", size, "feed" ) tag.div(class: classes) { @content } end |