mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🎨 Add new Flux icons: implement multiple reusable icon components (e.g., hand-raised, hand-thumb-up, heart, hashtag, home) with variant support for improved UI consistency.
This commit is contained in:
27
resources/views/flux/file-upload/index.blade.php
Normal file
27
resources/views/flux/file-upload/index.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
@blaze
|
||||
|
||||
@props([
|
||||
'name' => $attributes->whereStartsWith('wire:model')->first(),
|
||||
])
|
||||
|
||||
@php
|
||||
$classes = Flux::classes()
|
||||
// NOTE: We need to add relative positioning here to prevent odd overflow behaviors because of
|
||||
// "sr-only": https://github.com/tailwindlabs/tailwindcss/discussions/12429
|
||||
->add('relative')
|
||||
// The below reverts styles added by Tailwind Forms plugin
|
||||
->add('border-0 p-0 bg-transparent')
|
||||
;
|
||||
@endphp
|
||||
|
||||
<flux:with-field :$attributes :$name>
|
||||
<ui-file-upload
|
||||
{{ $attributes->class($classes) }}
|
||||
@if($name) name="{{ $name }}" @endif
|
||||
data-flux-file-upload
|
||||
>
|
||||
<input type="file" wire:ignore data-slot="receiver" class="sr-only" @if($name) name="{{ $name }}" @endif />
|
||||
|
||||
{{ $slot }}
|
||||
</ui-file-upload>
|
||||
</flux:with-field>
|
||||
Reference in New Issue
Block a user