table-usage

Build semantic data tables with @techsio/ui-kit Table components.

2|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/TechsioCZ/new-engine --skill table-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: table-usage
Source: https://github.com/TechsioCZ/new-engine/tree/main/libs/ui/skills/table-usage
Command: npx skills add https://github.com/TechsioCZ/new-engine --skill table-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use after component-usage-ux when an app needs @techsio/ui-kit Table for semantic tabular data with caption, header, body, footer, rows, column headers, numeric cells, selected rows, variants, interactive rows, sticky header/first column, column borders, and size props.

Core Features & Use Cases

  • Use semantic table parts: Caption, Header, Body, Footer, Row, ColumnHeader, and Cell to build accessible data tables.
  • Support numeric alignment and styling through props like numeric, variant, size, stickyHeader, and interactive.
  • Promote reuse across dashboards and data-heavy views to ensure consistency and accessibility.

Quick Start

Import and render the Table component from @techsio/ui-kit and follow the example to build a semantic data table.

Frequently Asked Questions about table-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build accessible data tables in React with semantic HTML?

You build accessible data tables in React by using semantic parts like Caption, Header, Body, Footer, Row, ColumnHeader, and Cell. This structured component enforces proper HTML semantics for screen readers and assistive technologies.

Can I create interactive rows and sticky headers for dashboards using this table component?

Yes, you can create interactive rows and sticky headers for dashboards by applying the interactive and stickyHeader props. These features support data-heavy UIs by keeping column headers visible during scrolling and enabling row selection.

Does the @techsio/ui-kit table component support numeric alignment and size variants?

Yes, the @techsio/ui-kit table component supports numeric alignment and size variants. You apply the numeric, variant, and size props directly to your table cells to control data alignment and visual styling.

What is the best way to structure tabular data with footers and column headers in React?

The best way to structure tabular data in React is using semantic sub-components like ColumnHeader, Body, and Footer. This approach promotes reuse across data-heavy views and ensures consistent accessibility.

Do I need to install @techsio/ui-kit before building semantic tables?

Yes, you need to import the Table component from the @techsio/ui-kit library. You then render the structured component and apply props like stickyHeader or numeric to build your semantic data table.