Table
Design-system styled data table. Supports striped rows and hover state.
data table
Controls
striped
Current props
striped:
Usage
data.Table(data.TableProps{Striped: true},
h.THead(h.Tr(
h.Th(g.Text("Name")),
h.Th(g.Text("Status")),
h.Th(g.Text("Amount")),
)),
h.TBody(
h.Tr(h.Td(g.Text("Alice")), h.Td(g.Text("Active")), h.Td(g.Text("$120"))),
h.Tr(h.Td(g.Text("Bob")), h.Td(g.Text("Pending")), h.Td(g.Text("$85"))),
),
)Props
| Name | Type | Options | Default |
|---|---|---|---|
striped | bool | — | false |