Data display
Table
A semantic data table with right-aligned tabular numbers, selection and contained horizontal scroll.
npx dtheo@latest add table| Run | Profile | Result | Kp | Overshoot (%) | Settling (ms) | Peak torque (N·m) |
|---|---|---|---|---|---|---|
| R-0412 | High-gain step | Failed | 4.20 | 17.6 | 186 | 9.41 |
| R-0411 | High-gain step | Failed | 3.90 | 11.2 | 174 | 8.90 |
| R-0410 | Fast rise | Near limit | 3.60 | 7.9 | 192 | 8.63 |
| R-0409 | Nominal step | Passed | 3.20 | 3.8 | 158 | 8.30 |
| R-0408 | Nominal step | Passed | 3.20 | 6.8 | 161 | 8.54 |
| R-0407 | Damped step | Passed | 2.80 | 5.2 | 149 | 8.42 |
When to use
- Run history, measurements, any rows people compare
- Selecting rows to act on:
useRowSelectionadds Shift-click ranges, like a mail inbox
- Layout: use grid or flex
- A single record: use a description list
Examples
Selection
Click one, then ⇧ click another
| Run | Profile | Overshoot | |
|---|---|---|---|
| R-0412 | High-gain step | 17.6 % | |
| R-0411 | High-gain step | 21.3 % | |
| R-0410 | Fast rise | 9.4 % | |
| R-0409 | Nominal step | 4.1 % | |
| R-0408 | Nominal step | 6.8 % | |
| R-0407 | Damped step | 3.2 % |
Keyboard
- Space
- Select or clear the focused row
- Shift + SpaceShift + click
- Select every row between the last one and this one
- Uses native table semantics; no ARIA grid unless cells are interactive.
- Selected rows set
aria-selected; every row checkbox is named after its row.