0.0.1-beta.6 • Published 1 year ago

@hudoro/table v0.0.1-beta.6

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Hudoro table

Hudoro table is a strict and customizable table component for web development projects, designed for simplicity and adherence to strict design guidelines.

Screenshots

App Screenshot

Package instalation

Instal package using pnpm

  pnpm add @hudoro/table

Instal package using yarn

  yarn add @hudoro/table

Instal package using npm

  npm i @hudoro/table

Usage/Examples

import React from "react";
import {Table, Tbody, Td, Tfoot, Th, Thead, Tr} from "@hudoro/table";
import ReactDOM from "react-dom/client";

const App = () => (
  <div>
    <Table variant="striped">
      <Thead>
        <Tr>
          <Th>th</Th>
        </Tr>
      </Thead>
      <Tbody>
        <Tr>
          <Td>td</Td>
        </Tr>
        <Tr>
          <Td>td</Td>
        </Tr>
        <Tr>
          <Td>td</Td>
        </Tr>
        <Tr>
          <Td>td</Td>
        </Tr>
      </Tbody>
      <Tfoot>
        <Tr>
          <Td>foot</Td>
        </Tr>
      </Tfoot>
    </Table>
  </div>
);

ReactDOM.createRoot(document.getElementById("app")!).render(<App />);

Props @hudoro/table

Props that you can pass to <Table {...props} />

Prop NameValuerequired
fullWidthbooleanfalse
variant"simple" / "unstyled" / "striped"true

Props that you can pass to <Thead {...props} />

Prop NameValuerequired
childrenReactNodetrue

Props that you can pass to <Tbody {...props} />

Prop NameValuerequired
childrenReactNodetrue

Props that you can pass to <Tfoot {...props} />

Prop NameValuerequired
childrenReactNodetrue

Props that you can pass to <Tr {...props} />

Prop NameValuerequired
childrenReactNodetrue

Props that you can pass to <Th {...props} />

Prop NameValuerequired
childrenReactNodetrue

Props that you can pass to <Td {...props} />

Prop NameValuerequired
childrenReactNodetrue
0.0.1-beta.6

1 year ago

0.0.1-beta.3

1 year ago

0.0.1-beta.5

1 year ago

0.0.1-beta.4

1 year ago

0.0.1-beta.2

1 year ago

0.0.1-beta.1

1 year ago

0.0.1-beta.0

1 year ago