Sha256: c70f7dcf973e129121daacc6ff9767df65cef5508e51f973e2e61e4ede3cac48

Contents?: true

Size: 248 Bytes

Versions: 1

Compression:

Stored size: 248 Bytes

Contents

class TableComponentPreview < ViewComponent::Preview
  layout false

  def default
    render(TableComponent.new) do |table|
      table.headers do
        tag.th('Example header')
      end
      tag.tr(tag.td('Example column'))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alveole-0.0.1 lib/alveole/previews/table_component_preview.rb