import * as stylex from "@stylexjs/stylex"; import { Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, } from "@/components/table"; const styles = stylex.create({ table: { width: "100%", }, }); const columns = [ { id: "name", name: "Name" }, { id: "email", name: "Email" }, { id: "role", name: "Role" }, ]; const rows = [ { id: 1, name: "John Doe", email: "john@example.com", role: "Admin" }, { id: 2, name: "Jane Smith", email: "jane@example.com", role: "User" }, { id: 3, name: "Bob Johnson", email: "bob@example.com", role: "User" }, ]; export function Basic() { return ( {columns.map((column) => ( {column.name} ))} {(item) => ( {item.name} {item.email} {item.role} )}
); }