https://github.com/makotot/react-tabbed
Tab component with render props.
https://github.com/makotot/react-tabbed
Last synced: 8 months 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 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T15:46:57.000Z (over 7 years ago)
- Last Synced: 2025-03-18T04:47:55.249Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ``
[](https://travis-ci.org/makotot/react-tabbed)
[](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