Skip to content

Commit 9f8e140

Browse files
committed
component architecture
1 parent 4dd421c commit 9f8e140

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ux.symfony.com/cookbook/component_architecture.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ Or you can make composition with the following syntax:
4141

4242
```twig
4343
<twig:Card>
44-
<twig:CardHeader>
45-
<h2>My Card</h2>
46-
</twig:CardHeader>
47-
<twig:CardBody>
48-
<p>This is the content of my card.</p>
49-
</twig:CardBody>
44+
<twig:Icon name="info"/>
45+
<twig:Button>
46+
<twig:Icon name="close" />
47+
</twig:Button>
5048
</twig:Card>
5149
```
5250

0 commit comments

Comments
 (0)