Skip to content
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 disabled to Fieldset #306

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AnnMarieW
Copy link
Sponsor Collaborator

Hi @snehilvj
Can we include this small update in the next release?
@MichaelODeli has the docs PR ready to merge after this is released as well 🎉

@AnnMarieW
Copy link
Sponsor Collaborator Author

Here is a sample app to give it a try
image

import dash_mantine_components as dmc
from dash import Dash, _dash_renderer, Input, Output
_dash_renderer._set_react_version("18.2.0")

app = Dash(external_stylesheets=dmc.styles.ALL)


component = dmc.Fieldset(
    children=[
        dmc.TextInput(label="Your name", placeholder="Your name"),
        dmc.TextInput(label="Email", placeholder="Email"),
        dmc.Group(
            [
                dmc.Button('Send')
            ],
            justify='flex-end'
        )
    ],
    legend="Personal information",
    disabled = True,
    m=20
)


app.layout = dmc.MantineProvider([
    component
])

if __name__ == "__main__":
    app.run(debug=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant