0.0.2-beta.10 • Published 1 year ago

@hudoro/tabs v0.0.2-beta.10

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

Hudoro tabs

Hudoro tabs is a strict and customizable tabs 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/tabs

Instal package using yarn

  yarn add @hudoro/tabs

Instal package using npm

  npm i @hudoro/tabs

Usage/Examples

import React, {useState} from "react";
import ReactDOM from "react-dom/client";
import {Tabs, TabsLists, Tab, TabPanels, TabPanel} from "@hudoro/tabs";

const App = () => (
  <div style={{display: "flex", justifyContent: "center"}}>
    <Tabs activeTab={2}>
      <TabsLists>
        <Tab onClick={() => alert("oke")}>one</Tab>
        <Tab>two</Tab>
        <Tab>Three</Tab>
      </TabsLists>
      <TabPanels>
        <TabPanel>one</TabPanel>
        <TabPanel>two</TabPanel>
        <TabPanel>three </TabPanel>
      </TabPanels>
    </Tabs>
  </div>
);

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

Props @hudoro/tabs

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

Prop NameValuerequired
childrenReactNodetrue
activeTabnumberfalse
onClick() => voidfalse

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

Prop NameValuerequired
childrenReactNodetrue

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

Prop NameValuerequired
childrenReactNodetrue

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

Prop NameValuerequired
childrenReactNodetrue

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

Prop NameValuerequired
childrenReactNodetrue
0.0.2-beta.8

1 year ago

0.0.2-beta.9

1 year ago

0.0.2-beta.10

1 year ago

0.0.2-beta.7

1 year ago

0.0.2-beta.6

1 year ago

0.0.2-beta.4

1 year ago

0.0.2-beta.5

1 year ago

0.0.2-beta.3

1 year ago

0.0.2-beta.2

1 year ago