Wrap all your buttons or any component in react-button-slider and it will be horizontally scrollable without any scrollbar
npm install @gunawanedy/react-button-sliderbash
npm i @gunawanedy/react-button-slider
`
yarn
`bash
yarn add @gunawanedy/react-button-slider
`
$3
`js
import React from 'react';
import ReactButtonSlider from '@gunawanedy/react-button-slider';
const App = () => {
return (
<>
{/you can add styling for your button/}
Your Contents
>
);
};
export default App;
`
$3
| Name | Type | Default | Description |
| -------------------- | -------- | ----------------------------------------- | ------------------------ |
| Children | any | | any component or element |
| overscrollTransition | string | transform .3s cubic-bezier(.25,.8,.5,1) | css transition property |
| dragAcceleration | number | 1` | drag acceleration |