Skip to content

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
On Air
放送局曜日時間備考
TOKYO MX木24:00先行
とちぎテレビ木24:00
BS11金23:30全国
AbemaTV木24:00配信
  • Mark one column header: true so 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

NameTypeDefaultDescription
columns*BlessColumn<T>[]—
rows*T[]—
rowKey(keyof T & string)—
captionstring—
stackbooleantruestack rows into label/value pairs under 800px
stripedbooleanfalse

Slots

NameScopeDescription
caption—
head{ column: BlessColumn<T>; }
cell{ row: T; column: BlessColumn<T>; value: T[keyof T & string]; index: number; }
foot—

Released under the MIT License. Character names and artwork belong to their owners.