Add basic badge twig component

This commit is contained in:
brabli
2024-08-07 17:18:16 +01:00
parent 0d29da03c4
commit 42e14af12a
3 changed files with 16 additions and 1 deletions

View File

@@ -26,7 +26,8 @@
"require": {
"symfony/dependency-injection": "^7.1",
"symfony/framework-bundle": "^7.1",
"symfony/yaml": "^7.1"
"symfony/yaml": "^7.1",
"symfony/ux-twig-component": "^2.18"
},
"require-dev": {
"symfony/test-pack": "^1.1",

View File

@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Pcm\BadgeBundle\Twig\Component;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
#[AsTwigComponent]
final class Badge
{
}

View File

@@ -0,0 +1 @@
<div class="text-2xl text-red-700">HELLO I AM A BADGE</div>