🎨 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:
HolgerHatGarKeineNode
2026-01-23 23:00:02 +01:00
parent 578e4f13fc
commit b30fec150c
792 changed files with 307541 additions and 117 deletions

View File

@@ -0,0 +1,28 @@
@props([
'length' => null,
'private' => false,
])
@php
$classes = Flux::classes()
->add('flex items-center gap-2 isolate w-fit')
->add('[&_[data-flux-input-group]]:w-auto')
@endphp
<flux:with-field :$attributes>
<ui-otp
{{ $attributes->class($classes) }}
data-flux-otp
data-flux-control
role="group"
data-flux-input-aria-label="{{ __('Character {current} of {total}') }}"
>
<?php if($slot->isEmpty() && $length): ?>
<?php for($i = 0; $i < $length; $i++): ?>
<flux:otp.input />
<?php endfor; ?>
<?php else: ?>
{{ $slot }}
<?php endif; ?>
</ui-otp>
</flux:with-field>