Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

about the style of the scroll bar


How can I change the style of the scroll bar on the right side of the webpage to match the style of the scroll bar on the left menu bar?

version: 9.1.1-typescript


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


Hi,

May I know, which demo you are referring to? So you want to change the browser's main scrollbar style ?

Regards,
Sean



demo1 i think, default demo.
yes,the browser's main scrollbar style.



or can i just hide the browser's main scrollbar? and how?



hello, any progress?

Thanks



Hi,

Can you try to add the below code into vite/src/styles/globals.css


html::-webkit-scrollbar {
@apply w-2; /* Tailwind width for scrollbar */
}

html::-webkit-scrollbar-track {
@apply bg-gray-100 rounded; /* Tailwind styles for track */
}

html::-webkit-scrollbar-thumb {
@apply bg-gray-400 rounded; /* Tailwind styles for thumb */
}

html::-webkit-scrollbar-thumb:hover {
@apply bg-gray-600; /* Tailwind hover color */
}


Regards,
Seam


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(