Scrollbar
React Bootstrap 5 Scrollbar
Scrollbar method which allows you to create a custom scrollbar.
Note: Read the API tab to find all available options and advanced customization
Basic example
import React from 'react';
import { MDBScrollbar } from 'mdb-react-ui-kit';
export default function App() {
return (
<MDBScrollbar style={{ position: 'relative', width: '600px', height: '400px' }}>
<img
src='https://mdbootstrap.com/img/new/slides/041.webp'
alt='...'
style={{ height: '700px', width: '1000px' }}
/>
</MDBScrollbar>
);
}
Options
You can easily init scrollbar options with props. Check full list of options here