Tutorial: extend the Administration with Single File Components
WARNING
Single File Component (SFC) support for Administration extensions is experimental. It is available since Shopware 6.7.16.0. The APIs described on this page can still change without a deprecation. Try it out and tell us what you find, but do not ship an extension built on it to customers or to the Shopware Store until the API is declared stable (planned for 6.9).
In five chapters, you build a plugin from scratch. At the end, it warns a merchant on the product detail page when a product's profit margin is too low:

Start with the first chapter, which sets up your development environment.
Chapters
1. Set up your environment
Docker, the plugin skeleton, and the build
2. Your first override
Put your own markup on the product detail page
3. Read the component you extend
useSwPreviousState() and real product data
4. Build your own component
A base SFC with props and state of its own
5. Make your component extensible
sw-block, swDefinePublic and swDefineOverride