Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top and Bottom margin for the track #230

Open
krngd2 opened this issue Apr 13, 2022 · 1 comment
Open

Top and Bottom margin for the track #230

krngd2 opened this issue Apr 13, 2022 · 1 comment

Comments

@krngd2
Copy link

krngd2 commented Apr 13, 2022

I am looking to have a feature similar to this
image

I tried using padding to the track it only restricts the thumb movement. It would be great if it has proper track gap in top and bottom.

If the contributors are busy, let me know how can I do it as an outline. I will try to do it.

@GREsau
Copy link

GREsau commented Nov 17, 2022

I think this can already be done by setting top and height of the track, e.g.

<Scrollbar
  trackYProps={{
    style: {
      top: scrollbarGapTop,
      height: `calc(100% - ${scrollbarGapTop + scrollbarGapBottom}px)`,
    }
  }}
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants