Socket
Socket
Sign inDemoInstall

ornate-table

Package Overview
Dependencies
5
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ornate-table

React Component for displaying data in a table


Version published
Weekly downloads
22
decreased by-72.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Ornate Table

Create visually captivating and interactive tables effortlessly in your React projects.

Key Features:

Simple API: Build tables with minimal code, focusing on data and customization.

Rich Interactivity: Implement sorting, filtering, pagination, row selection, and more.

Themes & Customization: Easily style tables with built-in themes or create your own.

Accessibility: Ensure your tables are inclusive and usable for everyone.

Mobile-Friendly: Deliver optimized table experiences across devices.

Lightweight: Maintain optimal performance with a small bundle size.

Usage

Installation:

To get Ornate Table via the NPM package manager, open a terminal in your project directory and run the following command:

  npm install ornate-table

Basic Usage:

1. Import the library:

  import OrnateTable from 'ornate-table';

2. Prepare your data:

  const data = [
    { name: 'Donald', age: 12, city: 'Iringa' },
    { name: 'Fredrick', age: 9, city: 'Arusha' },
    { name: 'Peter', age: 5, city: 'Arusha' }
    { name: 'Paul', age: 5, city: 'Dar es Salaam' }
  ];

3. Define your columns:

  const columns = [
    { name: 'Name', field: 'name' },
    { name: 'Age', field: 'age', sortable: true },
    { name: 'City', field: 'city' }
  ];

4. Render the table:

<OrnateTable data={data} columns={columns} />

Authors

  • @donkagunila

License

MIT

Keywords

FAQs

Last updated on 21 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc