Sha256: 7f97385fe7f9f2e2e62382a586763c94c24675d7f20d5bf93cda89d9b88aa4b3
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
class TableRowComponentPreview < ViewComponent::Preview layout false def default render(TableRowComponent.new) do |tablerow| tablerow.actions do tag.td('Example actions') end tag.td('Example content') end end def without_actions render(TableRowComponent.new) do |_tablerow| tag.td('Example content') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-0.0.1 | lib/alveole/previews/table_row_component_preview.rb |