Loading…
Loading…
Config-driven table from a columns array with loading/empty states, selection, and expandable rows.
| Name | Role | |
|---|---|---|
| Alice Johnson | alice@example.com | Admin |
| Bob Smith | bob@example.com | Editor |
| Carol White | carol@example.com | Viewer |
<DynamicTable
config={{
columns: [
{ key: 'name', header: 'Name' },
{ key: 'email', header: 'Email' },
],
}}
data={[
{ id: '1', name: 'John', email: 'john@example.com' },
]}
isLoading={false}
currentPage={1}
setCurrentPage={() => {}}
/>