defmodule SurfaceBulma.StaticTable do @moduledoc """ A static Bulma HTML table. You can create a table by passing `data` to it and defining columns using the `Table.Column` component. """ use Surface.Component @doc "The data that populates the table internal" prop data, :generator, required: true, root: true @doc "The table is expanded (full-width)" prop expanded, :boolean, default: true @doc "Add borders to all the cells" prop bordered, :boolean, default: false @doc "Add stripes to the table" prop striped, :boolean, default: false @doc "The CSS class for the wrapping `
| {col.label} | {/for}
|---|
| <#slot {col} generator_value={item} /> |