Files
ladill-mini/resources/views/components/btn/primary.blade.php
T
isaaccladandCursor b203774cc6
Deploy Ladill Mini / deploy (push) Successful in 33s
Unify primary buttons with gradient pill design across Ladill Mini.
Add shared btn-primary components and plus icons on create/new actions for a consistent Ladill UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 22:40:40 +00:00

17 lines
292 B
PHP

@props([
'href' => null,
'type' => 'button',
])
@php
$tag = $href ? 'a' : 'button';
@endphp
<{{ $tag }}
@if ($href) href="{{ $href }}" @endif
@if ($tag === 'button') type="{{ $type }}" @endif
{{ $attributes->class(['btn-primary']) }}
>
{{ $slot }}
</{{ $tag }}>