Socket
Book a DemoInstallSign in
Socket

@paprika/data-table

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/data-table

A virtualized table component.

latest
Source
npmnpm
Version
1.3.4
Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

@paprika/data-table

Description

A virtualized table component.

Installation

yarn add @paprika/data-table

or with npm:

npm install @paprika/data-table

Props

DataTable

PropTyperequireddefaultDescription
a11yTextstringtrue-Accessible description of the table
childrenReactReactNodefalsenull
columnsArraytrue-Array of column definition
dataArraytrue-Array of data to be stored in the table
maxHeightstringfalse"100vh"The max height of the table in px/vh/calc(xvh+/-xpx)
maxWidthstringfalse"100vw"The max width of the table in px/vw/calc(xvw+/-xpx)
borderTypeBorderTypefalsegridTypes.HORIZONTALDefine the look for borders in the table
getRowHeight[unknown,null]falsenullFunction to return the row height for each row
hasZebraStripesbooleanfalsefalseAdd an alternating background on the table rows
isHeaderStickybooleanfalsetrueIf the entire table header is sticky or not
renderRow[unknown,null]falsenullOverride the table Column configuration for some particular rows
shouldResizeWithViewportbooleanfalsetrueIf the table should be resized when the viewport size changed
extraCellPropsRecordfalse{}Experimental prop

DataTable.InfiniteLoader

PropTyperequireddefaultDescription
isItemLoadedsignaturetrue-Function responsible for tracking the loaded state of each item.
itemCountnumbertrue-Number of rows in list; can be arbitrary high number if actual number is unknown.
loadMoreItemssignaturetrue-Callback to be invoked when more rows must be loaded.
It should return a Promise that is resolved once all data has finished loading.
isNextPageLoadingbooleanfalse-If true, will prevent the InfiniteLoader from asking to load more than once at a time
minimumBatchSizenumberfalse-Minimum number of rows to be loaded at a time; defaults to 10. This property can be used to batch requests to reduce HTTP requests.
thresholdnumberfalse-Threshold at which to pre-fetch data; defaults to 15. A threshold of 15 means that data will start loading when a user scrolls within 15 rows.
  • Storybook Showcase
  • GitHub source code
  • Create GitHub issue
  • CHANGELOG

FAQs

Package last updated on 29 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts