Skip to content

ZTable

Data table component

Example

NameValue
Row 1100

Import

tsx
import { ZTable } from "zurto-ui";

Usage

tsx
import { ZTable } from "zurto-ui";

const columns = [
  { key: "name", title: "Name" },
  { key: "email", title: "Email" },
  { key: "role", title: "Role" },
];

const data = [
  { name: "John Doe", email: "john@example.com", role: "Admin" },
  { name: "Jane Smith", email: "jane@example.com", role: "User" },
];

function Example() {
  return <ZTable columns={columns} data={data} />;
}

Props

PropTypeDefaultDescription
columnsArray<Column>-Column definitions
dataArray<Row>-Table data
stripedbooleanfalseStriped rows
hoverablebooleantrueHover effect

Accessibility

  • ✅ Keyboard navigation support
  • ✅ ARIA attributes included
  • ✅ Screen reader friendly
  • ✅ Focus management

Released under the MIT License.