Skip to main content

Table

A structured data table built from rows and cells. Use TableRow and TableCell to define the table structure declaratively.
<Table>
  <TableRow header>
    <TableCell>Name</TableCell>
    <TableCell>Price</TableCell>
  </TableRow>
  <TableRow>
    <TableCell>{name}</TableCell>
    <TableCell>{price}</TableCell>
  </TableRow>
</Table>
Mark a TableRow with header to render it with bold text and a background color, making it easy to distinguish column headings from data rows.

TableRow Props

PropTypeDefaultDescription
headerbooleanfalseRender as a header row with bold text and background styling.

TableCell Props

PropTypeDefaultDescription
widthnumber | stringCustom cell width.
colSizexs | sm | md | lg | xlPreset width. xs: 60px, sm: 100px, md: 160px, lg: 240px, xl: 320px.
colSpannumberNumber of columns this cell spans.
rowSpannumberNumber of rows this cell spans.
paddingspacingCell padding.
alignstart | center | endHorizontal alignment of the cell content.
vAlignstart | center | endVertical alignment of the cell content.

Chart

Data visualization component supporting bar, line, and area charts. You can combine multiple series in a single chart to overlay different visualization types.
<Chart
  data={salesData}
  xAxis="month"
  series={[
    { dataKey: "revenue", label: "Revenue", type: "bar", color: "#4f46e5" },
    { dataKey: "target", label: "Target", type: "line", color: "#ef4444" }
  ]}
/>
Each entry in the series array defines one data series. You can mix bar, line, and area types in the same chart to create composite visualizations like a bar chart with a trend line overlay.

Props

PropTypeDefaultDescription
dataarray of objectsThe dataset to visualize. Each object represents one data point.
seriesarrayArray of series definitions. See series options below.
xAxisstring | {dataKey, hide?, labels?}The data key for the x-axis, or an object for advanced configuration.
yAxis{domain?}Y-axis configuration. domain accepts numbers, "auto", "dataMin", or "dataMax".
showLegendbooleantrueShow or hide the chart legend.
showTooltipbooleantrueShow or hide tooltips on hover.
showYAxisbooleanfalseShow or hide the y-axis labels.
barGapnumberGap between bars within the same category.
barCategoryGapnumberGap between bar categories.
widthnumber | stringExplicit chart width.
heightnumber | stringExplicit chart height.
minHeightnumber200Minimum chart height in pixels.
flexnumber | stringFlex grow/shrink behavior.

Series Options

Each object in the series array accepts:
PropTypeDescription
dataKeystringThe key in the data objects for this series’ values.
labelstringDisplay label for the series in legend and tooltip.
typebar | line | areaVisualization type.
colorstringSeries color.
stackstringOptional stack group. Series with the same stack value are stacked together.
curveTypestringOptional curve interpolation type for line and area charts.