Accessible tabs (in React).
npm i @bscop/react-tabs
import Tabs from "@bscop/react-tabs";
function App () {
return (
<Tabs
tabs={[
{
id: "tab-1",
label: "Section one",
renderContent () {
return (
<p>Content of the first tab ...</p>
);
},
},
{
id: "tab-2",
label: "Section two",
renderContent () {
return (
<p>Content of the second tab ...</p>
);
},
}
]}
title="Switch tab"
/>
);
}
Read the guidelines.
npm test
Coverage reports are hosted on codecov.
npm run badge:coverage -- --token=<guid>
Bruno Scopelliti
www.brunoscopelliti.com