Skip to content

Do we have a scrollbar component in a code block? #1857

Answered by nkrantz
charleneyjh1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @charleneyjh1,

We don't currently have a Paste Code Block component (it's on the roadmap, release date TBD), but you should be able to accomplish the horizontal scroll with whatever approach you're currently taking for the code block. Adding the css property overflow-x="scroll" should take care of it.

If you'd like more support, feel free to leave a code sandbox link and we will take a look.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nkrantz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants