Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/makotot/react-tabbed

Tab component with render props.
https://github.com/makotot/react-tabbed

Last synced: 28 days ago
JSON representation

Tab component with render props.

Awesome Lists containing this project

README

        

# ``

[![travis](http://img.shields.io/travis/makotot/react-tabbed.svg?style=flat-square)](https://travis-ci.org/makotot/react-tabbed)
[![License](http://img.shields.io/npm/l/@makotot/react-tabbed.svg?style=flat-square)](https://github.com/makotot/react-tabbed)

> Tab component with render props.

## Install

```sh
$ npm i react-tabbed
```

## Usage

```js
import Tabbed from 'react-tabbed'

{
return (



{ e.preventDefault(); console.log(this) },
})
}
style={{ color: isActiveTab(0) ? '#f00' : '#000' }}
>tab 1

tab 2
tab 3


{ isActiveTab(0) &&
1
}
{ isActiveTab(1) &&
2
}
{ isActiveTab(2) &&
3
}


)
}
}
/>
```

## License

MIT