Simple tab component for deku
$ npm install --save deku-tabs
import Tabs from 'deku-tabs';
export function render() {
const items = [{
content: <div>Content 1</div>,
heading: 'Heading 1'
}, {
active: true,
content: <div>Content 2</div>,
heading: 'Heading 2'
}, {
content: <div>Content 3</div>,
heading: 'Heading 3'
}];
return (
<Tabs items={items}/>
);
}
MIT © Andreas Gillström