It would be nice to be able to reset configurable props and slots back to their default values in the Controls panel. We could consider an icon-only button with the refresh icon for this.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
docs, Wrapper: add a "reset" button | design/codex | main | +111 -19 |
Event Timeline
Comment Actions
Additionally, this reset button should reset the internal state of the component. For example, the Message component (when the type is "notice") is dismissable, and once it's been dismissed you can't get it back.
Comment Actions
That should be possible with :key - just change the key for the element when trying to reset
Comment Actions
Change 769843 had a related patch set uploaded (by DannyS712; author: DannyS712):
[design/codex@main] docs, Wrapper: add a "reset" button
Comment Actions
Change 769843 merged by jenkins-bot:
[design/codex@main] docs, Wrapper: add a "reset" button