rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

Table

Semantic HTML table with styled header, body, and optional footer rows.

Examples

Basic

Clean table with header and body rows.

Striped

Alternating row background for improved scannability.

With actions

Each row has contextual edit and delete actions.

With selection

Checkbox column for multi-row selection.

Sortable

Click column headers to toggle ascending / descending sort.

With Footer

Table with a summary footer row.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { Table } from "@rokle/components";
import { Table } from "@rokle/components";

export function Example() {
  return <Table />;
}

API Reference

PropTypeDefaultDescription
columns{ key: string; header: string }[]-Column definitions.
dataRecord<string, unknown>[]-Row data array.
captionstring-Accessible table caption.