For this task, we will add a WIP version of the Table component with basic features and demos, in order to enable the development of all MVP features.
Component scope
The initial component will have the following features:
- Table caption, which is visible by default but can be visually hidden
- columns prop for column definitions
- data prop for table data
- Row headings
- Horizontal scrolling when the table becomes wider than its container
- Slots:
- Default (to override any combination of the thead, tbody, or tfoot)
- Item (dynamic, scoped slot)
- Header
- Footer
- Styles as defined in the component spec sheet
- Unit tests
Demos/documentation
The user-facing demo page will be built as part of another subtask of the Table epic. For development purposes, in this task, we will create a simple demo for the Sandbox page, plus a separate page in the Sandbox just for Table demos. As part of this task, table demos relevant to the features included here will be built.
Acceptance criteria
- A new WIP Table component is added
- The following Table features are implemented:
- Caption (can be visually hidden)
- Props for columns and data
- Row headings
- Horizontal scrolling
- Default slot
- Item slot
- Header slot
- Footer slot
- Styles
- Unit tests
- Sandbox demo + demo page