-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add type and breakpoint props to Grid #473
Add type and breakpoint props to Grid #473
Conversation
Test Environment for snehilvj/dash-mantine-components-473 |
Here is the test: app.py:
I was not able to spot any diff between "media" and "container" types. |
Try changing the pycafe app to this: 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.Grid(
children=[
dmc.GridCol(html.Div("1", style=style), span={"base": 12, "md": 6, "lg": 3}),
dmc.GridCol(html.Div("2", style=style), span={"base": 12, "md": 6, "lg": 3}),
dmc.GridCol(html.Div("3", style=style), span={"base": 12, "md": 6, "lg": 3}),
dmc.GridCol(html.Div("4", style=style), span={"base": 12, "md": 6, "lg": 3}),
dmc.GridCol(html.Div("5", style=style), span={"base": 12, "md": 6, "lg": 3}),
],
gutter="xl",
type="container",
breakpoints={
"xs": "100px",
"sm": "200px",
"md": "300px",
"lg": "400px",
"xl": "500px",
},
),
style={"resize": 'horizontal', "overflow": 'hidden', "maxWidth": '100%', "margin": 24 },
)
app.layout = dmc.MantineProvider([component])
if __name__ == "__main__":
app.run(debug=True) |
@AnnMarieW Thanks! Updated the app in pycafe. |
@namakshenas - Looks good. Just need a changelog and this is ready to merge too. Thanks! 💃 |
533f76a
to
3b3fa85
Compare
@AnnMarieW |
PR / add type and breakpoint props to Grid / #428