npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

antd-table-virtualized

v0.1.5

Published

React table components compatible with some antd table API

Readme

NPM registryNPM license

antd-table-virtualized

React table components compatible with some antd table API

:warning: This version is not stable yet, please do not use it in production environment

Install

# Yarn
yarn add antd-table-virtualized

# NPM
npm install --save antd-table-virtualized

Usage


import AntdTableVirtualized from 'antd-table-virtualized'

// Note: in order to autosize the table, you need to set the
//       wrapper element's style property `display` to `flex`.
//       Otherwise the view will be blank.

<div style={{ dispaly: 'flex' }}>
  <AntdTableVirtualized
    {/* props here */}
  />
  <div>
    {/* other code here */}
  </div>
</div>

Please refer to src/App.js for usage, feel free to contact me [email protected] :heart:

API

AntdTableVirtualized

| Property | Description | Type | Default | Version | | ---- | ---- | ---- | ---- | ---- | | bordered | Whether to show all table borders | boolean | false | | | striped | Whether Table is striped | boolean | false | | | clickHighlight | Weather highlight the row after you clicked, support for custom color values | boolean | string | false | | | rowHeight | Height for content row | number | 40 | | | rowHeadHeight | Height for head row | number | 40 | | | multipleSort | Multi-header sort, used with column sort | boolean | false | | | placeholder | To customize innerHTML when no data | ReactNode | No Data | | | className | Table's className | string | - | | | columns | Columns of table | array | - | | | dataSource | Data record array to be displayed | array | - | | | pagination | Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false | object | - | | | rowSelection | Row selection config | object | null | | | onRow | Set props on per row, document | Function(record, index) | - | |

pagination also support properties below

| Property | Description | Type | Default | Version | | ---- | ---- | ---- | ---- | ---- | | height | Pagination height | number | 50 | | | wrapperStyle | Wrapper element style for pagination | object | - | |

rowSelection

Properties for row selection.

| Property | Description | Type | Default | Version | | ---- | ---- | ---- | ---- | ---- | | columnWidth | Set the width of the selection column | number | 48 | | | getCheckboxProps | Get Checkbox props | Function(record) | - | | | selectedRowKeys | Controlled selected row keys | number[] | [] | | | onChange | Callback executed when selected rows change | Function(selectedRowKeys, selectedRows) | | | | onSelect | Callback executed when select/deselect one row | Function(selectedRowKeys, selectedRows) | - | | | onSelectAll | Callback executed when select/deselect all rows | Function(selected, selectedRows, changeRows) | - | |

Column

One of the Table columns prop for describing the table's columns, Column has the same API.

| Property | Description | Type | Default | Version | | ---- | ---- | ---- | ---- | ---- | | ellipsis | Ellipsize cell content | boolean | false | | | toolTip | A simple text popup tip, Used with ellipsis, document | boolean|object | false | | | width | Width of this column | number | - | | | fixed | Set column to be fixed: true(same as left) 'left' 'right' | boolean|string | - | | | sort | Column sort, see example below | object | - | | | render | Renderer of the table cell. The return value should be a ReactNode | Function(text, record, index) {} | - | |

sort: {
  // 'ascend' | 'descend'
  defaultOrder: 'ascend',
  handle: (sortFields) => {
    console.log(sortFields)
  }
}

Related libraries

  • antd: An enterprise-class UI design language and React UI library.
  • react-window: React components for efficiently rendering large lists and tabular data.
  • react-virtualized-auto-sizer: HOC that grows to fit all of the available space and passes the width and height values to its child.

License

MIT