@advui/data
v0.12.0
Published
Data components for Adv UI: Table, Data Table, Data Grid, Tree View, Timeline, Stat and KPI Card, on web, iOS and Android.
Downloads
933
Readme
@advui/data
Components for showing and working with structured data in Adv UI, on web, iOS and Android: Table, Data Table (sorting, selection, pagination), Data Grid (editable cells), Tree View, Timeline, Stat and KPI Card.
pnpm add @advui/data @advui/core @advui/theme @advui/icons tamaguiimport { DataTable, type DataTableColumn } from '@advui/data'
const columns: DataTableColumn<Project>[] = [
{ id: 'organization', header: 'Organization', sortable: true },
{ id: 'beneficiaries', header: 'Reached', sortable: true, align: 'end' },
]
<DataTable aria-label="Projects" data={projects} columns={columns} pageSize={10} searchable selectable />The components render inside the app's UniversalProvider from
@advui/core, which is a peer dependency, as are react, react-native and
tamagui. No other libraries are added.
Exports: DataGrid, DataTable, KpiCard, Stat (with StatLabel, StatValue,
StatHelpText, StatFrame), Table (with its frames), Timeline (with its parts),
TreeView, flattenTree, and their prop types.
Metadata: @advui/data/meta exports components, the metadata of these
components (types in @advui/core/meta), for tools such as the AdvUI Builder.
Docs: https://zinmin232.github.io/advui/docs/components/data-table. License: MIT.
