Page MenuHomePhabricator

Add configurable props and slots to VitePress component demos
Closed, ResolvedPublic

Description

In WVUI we used the Storybook controls addon to creative configurable components, where the user could change props and slot contents and immediately see those changes reflected in the demo. This is particularly effective for components with lots of different states, like Button.

We should consider building something similar for our VitePress demos. I built a demo of this here (code).

Event Timeline

Change 737942 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] docs: Add configurable demos via Controls

https://gerrit.wikimedia.org/r/737942

Change 737942 merged by jenkins-bot:

[design/codex@main] docs: Add configurable demos via Controls

https://gerrit.wikimedia.org/r/737942