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 🙏

© 2024 – Pkg Stats / Ryan Hefner

chakra-paginated-table

v1.5.12

Published

**Chakra Paginated Table** is a customizable and feature-rich table component built with Chakra UI, inspired by the pagination functionality of Ant Design (antd). It allows you to easily render a paginated table by providing data and column configurations

Downloads

1,405

Readme

Sure, here's a styled version of your readme.md:


📊 Chakra Paginated Table

Chakra Paginated Table is a customizable and feature-rich table component built with Chakra UI, inspired by the pagination functionality of Ant Design (antd). It allows you to easily render a paginated table by providing data and column configurations.

📦 Installation

Can be installed using npm or yarn:

npm install chakra-paginated-table

or

yarn add chakra-paginated-table

🚀 Usage

To use Chakra Paginated Table in your project, follow these steps:

  1. Import the necessary components:
import { ChakraPaginatedTable } from "chakra-paginated-table";
  1. Define your columns and data source:
const columns = [
  { title: "Name", dataKey: "name", key: "name" },
  { title: "Age", dataKey: "age", key: "age" },
  { title: "Address", dataKey: "address", key: "address" },
];

const dataSource = [
  { key: "1", name: "John Doe", age: 30, address: "123 Main St" },
  { key: "2", name: "Jane Smith", age: 25, address: "456 Elm St" },
  // Add more data...
];
  1. Render the Chakra Paginated Table component:
const MyTableComponent = () => {
  return <ChakraPaginatedTable columns={columns} dataSource={dataSource} />;
};

🤝 Contributing

If you want to contribute to this project, feel free to submit a pull request.

🔗 GitHub Repository

📜 Props

The Chakra Paginated Table component accepts the following props:

  • columns (Array): An array of column configurations. Each column object should have title, dataKey, and key properties.
  • dataSource (Array): An array of objects representing the data source for the table. Each object should have keys matching the dataKey defined in the columns.

🎨 Customization

Chakra Paginated Table provides various customization options:

  • Pagination Options: You can customize the number of rows displayed per page and the positioning of the pagination controls.
  • Styling: Chakra UI offers a wide range of styling options. You can easily apply custom styles to the table, columns, and pagination controls to match your design requirements.
  • Localization: You can customize the text displayed for the pagination controls to support different languages.

🖋 About the Author

Hi, I'm Umar Bunu. I'm a software developer passionate about open-source projects.

📜 License

Chakra Paginated Table is open-source software licensed under the MIT License.

🙏 Acknowledgments

Chakra Paginated Table was inspired by the pagination functionality of Ant Design (antd) and aims to provide a similar experience using Chakra UI. We extend our gratitude to the Ant Design team for their great work.