Skip to content

Commit e625c9c

Browse files
committed
component architecture
1 parent 8d2e0b8 commit e625c9c

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
@@ -43,12 +43,10 @@ Or you can make composition with the following syntax:
4343

4444
```twig
4545
<twig:Card>
46-
<twig:CardHeader>
47-
<h2>My Card</h2>
48-
</twig:CardHeader>
49-
<twig:CardBody>
50-
<p>This is the content of my card.</p>
51-
</twig:CardBody>
46+
<twig:Icon name="info"/>
47+
<twig:Button>
48+
<twig:Icon name="close" />
49+
</twig:Button>
5250
</twig:Card>
5351
```
5452

0 commit comments

Comments
 (0)