Better example for links

old
Javi Velasco 2015-11-01 23:17:16 +01:00
parent e1b9c6f8b4
commit 97ca9d68c9
2 changed files with 11 additions and 3 deletions

View File

@ -40,6 +40,14 @@ class Tab extends React.Component {
</section>
);
}
active (value) {
this.setState({active: value});
if (this.props.onActive && value) {
this.props.onActive(this);
}
}
}
export default Tab;

View File

@ -1,8 +1,8 @@
const LinksTest = () => (
<nav>
<Link href="/#/components/link" label="Work" count={4} icon='business' />
<Link href="/#/components/link" label="Blog" icon='speaker-notes' />
<Link href="/#/components/link" label="Explore" icon='explore' />
<Link href="#/components/link" label="Work" count={4} icon='business' />
<Link href="#/components/link" label="Blog" icon='speaker-notes' />
<Link href="#/components/link" label="Explore" icon='explore' />
</nav>
);