1.5.0 • Published 2 years ago

react-lean-tab2 v1.5.0

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

Tabs

Getting started

yarn add react-lean-tab2

API Props

SyntaxTypeDescription
onActiveChangefuncText
classNamestringYou can provide your classes

Usage

import { Tab2 } from "react-lean-tab2";

const App = () => {
	return (
		<Tab>
			<Tab.Pane title="First Pane">First Pane Body</Tab.Pane>
			<Tab.Pane title="Second Pane">Second Pane Body</Tab.Pane>
		</Tab>
	);
};
import { Tab2 } from "react-lean-tab2";

const App = () => {
	return (
		<Tab2 onActiveChange={onActiveChange}>
			<Tab2.Pane title="A">...</Tab2.Pane>
			<Tab2.Pane title="B">...</Tab2.Pane>
		</Tab2>
	);
};