Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/makotot/react-tabbed
- Owner: makotot
- Created: 2018-07-17T16:00:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T15:46:57.000Z (over 6 years ago)
- Last Synced: 2024-10-10T19:01:40.830Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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