Skip to content

gillstrom/deku-tabs

Repository files navigation

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

About

Simple tab component for deku

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •