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

eazytable

v0.1.3

Published

EasyTable is a versatile React library designed to streamline the process of creating and managing tables within your web applications. Whether you're building a data-rich dashboard, a product catalog, or any application that requires organized data prese

Downloads

13

Readme

EasyTable: Simplify Table Management in React

EasyTable is a versatile React library designed to streamline the process of creating and managing tables within your web applications. Whether you're building a data-rich dashboard, a product catalog, or any application that requires organized data presentation, EasyTable empowers you with intuitive tools to handle complex table structures with ease.

Key Features:

Effortless Integration: Seamlessly integrate EasyTable into your React projects using a simple component, minimizing the learning curve and enabling rapid implementation.

🔍 Smart Search: Implement advanced search functionalities across multiple columns, providing users with the ability to quickly find specific data points without hassle.

🎛️ Customizable Design: Tailor the look and feel of your tables to match your application's aesthetics. Customize headers, rows, and cells to maintain consistent branding.

🚀 Performance Optimized: With an emphasis on performance, EasyTable efficiently handles large datasets, utilizing smart rendering techniques to ensure smooth user experiences.

Getting Started:

  1. Install EasyTable using your preferred package manager:

    npm install easytable
  2. A Simple Code Example

    import React from 'react';
    import EazyTable from 'eazytable';
    import 'eazytable/dist/eazytable.css';
    
    
    const tempData = [
        { name: "Tanjiro", age: 17, height: "5'2", id: 1 },
        { name: "Luffy", age: 17, height: "5'4", id: 2 },
        { name: "Ichigo", age: 16, height: "5'8", id: 3 },
        { name: "Thorfinn", age: 23, height: "5'1", id: 4 },
        { name: "Kaneki", age: 16, height: "5'2", id: 5 },
        { name: "Shinichi", age: 18, height: "5'8", id: 6 }
    ]
    
    const columns = [
        // Column Declarations to display from the datasets
        { field: 'name', label: "Name", width: 200 },
        { field: 'age', label: "Age", width: 200 },
        { field: 'height', label: "Height", width: 200 },
        // Custom Field
        {
            field: 'actions',
            width: 200,
            label: "Actions", render: (row) => {
                return <button onClick={() => alert(row.id)}>View</button>
            }
        }
    ]
    
    const Table = () => {
        return (
            <EazyTable
                title="Users"
                columns={columns}
                data={tempData}
                rowKeyField="id"
            />
        );
    };
    
    export default Table;
  3. You're good to go! Let's run the code!

    Alt text

Props References

EazyTable Props

|Prop |Type | Required | Description | |------------|-----------|-------------|----------------| | title | String | true | Set the Title of the table| | columns | Array | true | An Array Containing a list of columns| | data | Array | true | An array containting row data | | rowKeyField | Number |true| The field in data which contains a unique row key | | showHeader | Boolean |false| | | showFooter | Boolean |false| | | height | String |false| Set a fixed height for the table | | alignText | String|false | Set the alignment of text in the table | | striped | String |false| Enable stripes for rows |

Column

| Key |Type |Required | Description | |------------|--------------|---------|----------------| | title | String | true | Name of the column| | label | String | true | An Array Containing a list of columns| | width | Number | false | Set the column width| | render | Component | false | First argument will have a paramenter called row |