Column Alignment

Control horizontal alignment of header and cell content with align.

Left (default)

Best for names, descriptions, and other text. Omit align or set it explicitly to left.

TypeScript
{
accessor: "name",
label: "Full Name",
width: "1fr",
align: "left",
}

Center

Use for status badges, icons, and other short indicators.

TypeScript
{
accessor: "status",
label: "Status",
width: 100,
align: "center",
}

Right

Use for numbers, currency, and percentages so values line up vertically.

TypeScript
{
accessor: "price",
label: "Price",
width: 120,
type: "number",
align: "right",
}

Example

Props

Column Alignment Configuration

PropertyRequiredDescriptionExample
ColumnDef.align
Optional
Horizontal alignment for header and cell content in the column. Defaults to left.
Options:
left
center
right