Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

MenuItem needs to scroll #215

Answered by veekeys
rseydler asked this question in Q&A
Jul 23, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hello @rseydler,

This is achievable with simple css as you would do it to any other HTML element to make it scrollable.
Just apply class on the DropdownMenu component with overflow-y: auto and max-height to whatever size you want.
Check up this code sandbox for an example:
https://codesandbox.io/s/itwinui-react-scrollable-dropdown-y5ubb?file=/src/App.tsx

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rseydler
Comment options

@mayank99
Comment options

@veekeys
Comment options

Answer selected by rseydler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants