🎨 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,29 @@
@props([
'icon' => 'exclamation-triangle',
'bag' => 'default',
'message' => null,
'nested' => true,
'name' => null,
])
@php
$errorBag = $errors->getBag($bag);
$message ??= $name ? $errorBag->first($name) : null;
if ($name && (is_null($message) || $message === '') && filter_var($nested, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) !== false) {
$message = $errorBag->first($name . '.*');
}
$classes = Flux::classes('mt-3 text-sm font-medium text-red-500 dark:text-red-400')
->add($message ? '' : 'hidden');
@endphp
<div role="alert" aria-live="polite" aria-atomic="true" {{ $attributes->class($classes) }} data-flux-error>
<?php if ($message) : ?>
<?php if ($icon) : ?>
<flux:icon :name="$icon" variant="mini" class="inline" />
<?php endif; ?>
{{ $message }}
<?php endif; ?>
</div>