1.0.5 • Published 3 years ago

fr3-responsive-table v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Installation

Run npm install fr3-responsive-table

How to use this package?

Use:

import React from "react";
import ResponsiveTable from "fr3-responsive-table";

const App = () => {
  return (
    <ResponsiveTable>
      <table>
        <thead>
          <tr>
            <th>id</th>
            <th>name</th>
            <th>price</th>
            <th>update</th>
            <th>delete</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td data-label="id">01</td>
            <td data-label="name">Product_Name</td>
            <td data-label="price">5000</td>
            <td data-label="update">update</td>
            <td data-label="delete">delete</td>
          </tr>
        </tbody>
      </table>
    </ResponsiveTable>
  );
};

export default App;

Instruction

  • Do not forget to add data-label => data-label="TABLE_DATA_NAME".
  • You can style your table with your own css.
  • See my git_repo to get more details.

Author

CHEESE!

Pray for me & support my work!
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago