FormanceCustom component built for Formance products.
Installation#
Install the following dependencies:
Copy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
Compound Components
Compose the pieces you need:
<DataTable />Main table component with toolbar and pagination.<DataTableColumnHeader />Sortable column header with dropdown sort controls.<DataTablePagination />Pagination controls with page size selector.<DataTableToolbar />Toolbar with search, faceted filters, and view options.<DataTableViewOptions />Column visibility toggle dropdown.<DataTableFacetedFilter />Faceted filter popover for column filtering.<DataTableRowActions />Row-level action dropdown menu.<DataTableSkeleton />Loading skeleton placeholder for the data table.