react-overflow-wrapper
A React component that scrolls horizontally if the list is overflow.



Install
$ npm install react-overflow-wrapper
$ yarn add react-overflow-wrapper
Usage
import OverflowWrapper from 'react-overflow-wrapper';
<OverflowWrapper>
{
// some items
}
</OverflowWrapper>
Props
children
: React.ReactNode
- isRequired
- default:
undefined
className
: string
style
: object
iconSize
: number
iconColor
: string
iconWrapStyle
: object
- default:
{
left: {
backgroundImage: 'linear-gradient(to right, hsl(0, 100%, 100%) 25%,
hsla(0, 0%, 0%, 0))',
},
right: {
backgroundImage: 'linear-gradient(to left, hsl(0, 100%, 100%) 25%,
hsla(0, 0%, 0%, 0))',
},
}
iconStyle
: object
- default:
{
left: {},
right: {},
}
hideIcons
: boolean
leftIcon
: React.ReactNode
rightIcon
: React.ReactNode
Browser support
Tested with modern browsers.
License
the MIT license.