Calm motion: animations on this site only fade, with no movement
Table
Typed table, stacks on mobile
Data to read and compare in rows and columns. When people need to sort, search, page or select, use DataTable.
Basic
| 放送局 | 曜日 | 時間 | 備考 |
|---|---|---|---|
| TOKYO MX | 木 | 24:00 | 先行 |
| とちぎテレビ | 木 | 24:00 | |
| BS11 | 金 | 23:30 | 全国 |
| AbemaTV | 木 | 24:00 | 配信 |
- Mark one column
header: trueso each row is named by it (a row header). stack(on by default) turns rows into label/value pairs under 800px instead of scrolling sideways. The table keeps its table semantics either way.caption(or#caption) names the table.#cell-<key>renders one column's cells yourself.
Usage
ts
import { BlessTable } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
columns* | BlessColumn<T>[] | — | |
rows* | T[] | — | |
rowKey | (keyof T & string) | — | |
caption | string | — | |
stack | boolean | true | stack rows into label/value pairs under 800px |
striped | boolean | false |
Slots
| Name | Scope | Description |
|---|---|---|
caption | — | |
head | { column: BlessColumn<T>; } | |
cell | { row: T; column: BlessColumn<T>; value: T[keyof T & string]; index: number; } | |
foot | — |