Files
Neel Bansal 49619fdee1 feat(theme-live-codeblock): reset button + wire position prop (#11675)
* feat(theme-live-codeblock): add reset button to live code playground

Adds a reset button to live code playgrounds that restores edited code
to its original state. The button appears in the playground header
alongside the Live Editor label.

Closes #10711

* chore: update theme translations for reset button

* add mising LiveCodeBlockThemeConfig type import to website

* some fixes

* change type order

* remove useless dogfood page

* rename i18n key

* extract context to a client api export

* fix prop types import

* restore former comment

* refactor a bit, extract playground position prop

* expose position prop + dogfood

* wire position prop

* fix type issues

* subcomponents

* restore some former CSS

* fix React playground examples

* restore comment

---------

Co-authored-by: sebastien <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2026-02-19 17:41:19 +01:00
..