import dash_mantine_components as dmc
from dash import Dash, html, _dash_renderer
_dash_renderer._set_react_version("18.2.0")
app = Dash(external_stylesheets=dmc.styles.ALL)
style = {
"border": f"1px solid {dmc.DEFAULT_THEME['colors']['indigo'][4]}",
"textAlign": "center",
}
component = html.Div(
dmc.SimpleGrid(
type="container",
cols={"base": 1, "300px": 2, "500px": 5},
spacing={"base": 10, "300px": "xl"},
children=[
html.Div("1", style=style),
html.Div("2", style=style),
html.Div("3", style=style),
html.Div("4", style=style),
html.Div("5", style=style),
],
p="lg"
),
style={"resize": 'horizontal', "overflow": 'hidden', "maxWidth": '100%' }
)
app.layout = dmc.MantineProvider([component])
if __name__ == "__main__":
app.run(debug=True)