material-tailwind
material-tailwind copied to clipboard
How to open long model with a vertical scrollbar
Is there a way to use the dialog component to create a long modal that will get a vertical scrollbar on the browser window?
https://www.material-tailwind.com/docs/react/dialog#long-dialog
Can anyone from the material-tailwind team respond to this issue?
@alexazarh use ThemeProvider with custom settings, in your case you need to update dialog settings in the next way:
dialog: {
styles: {
base: {
backdrop: {
position: 'fixed overscroll-y-auto overflow-auto',
},
},
},
},
full example: https://github.com/oleksandr-andrushchenko/ExamMeFront/blob/main/src/components/ThemeProvider.tsx if it helps - give a star to my repo, thank you