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 prop to card #838

Open
behindthebeard opened this issue Mar 12, 2024 · 0 comments
Open

Add disabled prop to card #838

behindthebeard opened this issue Mar 12, 2024 · 0 comments
Labels
FR Feature Request

Comments

@behindthebeard
Copy link

Is your feature request related to a problem? Please describe.
I have a dashboard, where I am controlling an automatic gate. Two buttons, one opens it fully, one just to walk through. I am having the state of which kind of opening was triggered in booleans. I would like to disable one of the buttons if the other one was pressed.

image

Here the top one is the fully opening trigger, and it doesn't make sense to leave the second button enabled if the first one is pressed (and vice-versa).

Describe the solution you'd like
Having a disabled prop that would take a template would solve the problem described above.

Describe alternatives you've considered
I know that conditional rendering would solve this, but I think disabling a button would be helpful in other scenarios as well.

Additional context
Thanks for considering this as a possible feature 🙏

@behindthebeard behindthebeard added the FR Feature Request label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant