Home

Awesome

deku-tabs Build Status

Simple tab component for deku

Install

$ npm install --save deku-tabs

Usage

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}/>
	);
}

License

MIT © Andreas Gillström