This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
-
I have a DropdownMenu with approx 30 items in it from client data. This amount of data has the list ending off screen :( Is there a way to handle scrolling in the dropdown itself? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
veekeys
Jul 23, 2021
Replies: 1 comment 3 replies
-
Hello @rseydler, This is achievable with simple css as you would do it to any other HTML element to make it scrollable. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
rseydler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 withoverflow-y: auto
andmax-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