mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-27 06:33:18 +00:00
21 lines
399 B
PHP
21 lines
399 B
PHP
@blaze
|
|
|
|
@props([
|
|
'size' => null,
|
|
])
|
|
|
|
@php
|
|
$classes = Flux::classes()
|
|
->add('[:where(&)]:bg-bg-surface')
|
|
->add('border border-border-subtle')
|
|
->add(match ($size) {
|
|
default => '[:where(&)]:p-6 [:where(&)]:rounded-xl',
|
|
'sm' => '[:where(&)]:p-4 [:where(&)]:rounded-lg',
|
|
})
|
|
;
|
|
@endphp
|
|
|
|
<div {{ $attributes->class($classes) }} data-flux-card>
|
|
{{ $slot }}
|
|
</div>
|