Table

A responsive table for rows of data such as stock, orders and prices.

components/ui/table.tsx
ProductSKUStockPrice
Oat latteBV-104248$4.50
Flat whiteBV-104312$4.00
Cold brewBV-10510$5.00

Installation

npx betterone-ds add table

Props

Component

Accessibility

  • Always give the table an aria-label.
  • Mark the first column as the row header with isRowHeader.