added button component

This commit is contained in:
Pedro Cabral
2026-04-21 14:33:46 +02:00
parent 1b5d3f5bdf
commit 1bc3e5f885
5 changed files with 155 additions and 18 deletions

View File

@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace Tests\Feature\Component\DataProvider;
use App\View\Components\Button;
class ButtonTestDataProvider
{
public static function getDataForButtonTestWithButtons(): array
{
return [
'primary variant' => [
'variant' => Button::VARIANT_PRIMARY,
'expectedHtml' => 'bg-primary text-text-inverted'
],
'secondary variant' => [
'variant' => Button::VARIANT_SECONDARY,
'expectedHtml' => 'bg-secondary text-text'
],
'outline variant' => [
'variant' => Button::VARIANT_OUTLINE,
'expectedHtml' => 'bg-surface border border-primary text-primary'
],
];
}
}