Conversation
6914c82 to
bfe3a8b
Compare
bfe3a8b to
961e30f
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new badge component template for the Storybook documentation system. The change introduces a preview template that extends the base Storybook template and renders an Ibexa Badge component.
- Adds a new Storybook preview template for the Badge component
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| {% extends '@IbexaDesignSystemStorybook/themes/standard/storybook/base_preview.html.twig' %} | ||
|
|
||
| {% block component %} | ||
| <twig:ibexa:Badge {{ ...args }} /> |
There was a problem hiding this comment.
The spread operator syntax {{ ...args }} is not valid Twig syntax. Use {% for key, value in args %}{{ key }}="{{ value }}"{% endfor %} or pass specific attributes explicitly.
| <twig:ibexa:Badge {{ ...args }} /> | |
| <twig:ibexa:Badge {% for key, value in args %}{{ key }}="{{ value }}" {% endfor %}/> |
There was a problem hiding this comment.
Don't listen to copilot, he doesn't know a thing! :P
| {% extends '@IbexaDesignSystemStorybook/themes/standard/storybook/base_preview.html.twig' %} | ||
|
|
||
| {% block component %} | ||
| <twig:ibexa:Badge {{ ...args }} /> |
There was a problem hiding this comment.
Don't listen to copilot, he doesn't know a thing! :P
| @@ -0,0 +1,5 @@ | |||
| {% extends '@IbexaDesignSystemStorybook/themes/standard/storybook/base_preview.html.twig' %} | |||
|
|
|||
| {% block component %} | |||
There was a problem hiding this comment.
If you don't make any adjustments to properties, just passing all args to component, you can omit this file (and PR).
Related PRs:
Description:
For QA:
Documentation: