Class: Protos::List::Item

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/list/item.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject

DOCS: A single item within a list. Items are joined so that borders will work for list items, including border radius. E.g. only the first and last items will have border radius on the top and bottom.



10
11
12
# File 'lib/protos/list/item.rb', line 10

def view_template(&)
  li(**attrs, &)
end