ben-ryder / jigsaw

A design system and component library for use in my personal projects.
https://jigsaw.benryder.dev
GNU General Public License v3.0
0 stars 0 forks source link

Add Tabs component #66

Open ben-ryder opened 10 months ago

ben-ryder commented 10 months ago

Describe the feature Add a tabs component, which displays horizontal tabs on desktop and an acordion-like vertical layout on mobile.

Wireframes/Designs README

Requirements

Possible Component APIs

<JTabs
  tabs={[
    {
      header: "Tab 1",
      headerIcon: <Icon />,
      content: <Content />
    }
  ]}
/>
<JTabs>
  <JTab header="Tab 1"></JTab>
  <JTab header="Tab2" icon={<Icon/>}></JTab>
</JTabs>