Zenika / react-workbench

Design your React component in an isolated context
MIT License
8 stars 1 forks source link

:sparkles: tabs components #97

Closed bpetetot closed 7 years ago

bpetetot commented 7 years ago

The <Tabs> component will be used in the workbench screen (for props, state...) and the documentation screen (to switch from edit to preview mode)

It's a basic implementation of tabs, that can be used like that :

<Tabs className="myClass">
    <Tab title="props"><Props /></Tab>
    <Tab title="state">Not implemented yet.</Tab>
</Tabs>

The following features are available on the <Tabs> component

And the Tabs, Tab, TabsHeader and TabsActions styles can be overridden.