0.2.9 • Published 2 years ago

table-oc-graphigreg v0.2.9

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

forthebadge forthebadge forthebadgeforthebadge

table-oc-graphigreg

A simple table for your React app.

Compatibility

Your project needs to use React 18.0.0 or later. If you use an older version of React, please refer to the table below to find a suitable table-oc-graphigreg version.

React versionNewest compatible table-oc-graphigreg version
≥18.0.0latest
≥18.0.00.2.9

Installation

Add table-oc-graphigreg to your project by executing npm i table-oc-graphigreg or yarn add table-oc-graphigreg.

Usage

Here's an example of basic usage:

import React from 'react'
import { Table } from 'table-oc-graphigreg'
import PropTypes from 'prop-types'

function App() {
  return (
    <div>
      <Table data={data} labels={labels} pagination={10} />
    </div>
  )
}

Custom styling

Styles loaded by the default entry file are table-oc-graphigreg/dist/styles.css. You can copy them to your project to build your own upon them.

User guide

table-oc-graphigreg

Displays an input field complete with custom inputs, native input, and a calendar.

Props

Prop nameDescriptionExample valuesDefault value
dataDisplay rows data.n/aArray of objects: [{firstName: 'John',lastName: 'Doe',startDate: '01/01/2022', department: 'Aude',dateOfBirth: '01/01/1980',street: '1 rue Larue',city: 'Nice',state: 'France',zipCode: '06000',}]
labelsDisplay rows data.n/aArray of strings: ['First Name','Last Name','Start Date','Department','Date of Birth','Street','City','State','Zip Code',]
paginationDisplays the number of rows per page.10Number: 10

Author

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago