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:
25
resources/views/flux/chart/axis/index.blade.php
Normal file
25
resources/views/flux/chart/axis/index.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
@blaze
|
||||
|
||||
@props([
|
||||
'axis' => 'x',
|
||||
'format' => null,
|
||||
'field' => 'index',
|
||||
'position' => null,
|
||||
'tickValues' => null,
|
||||
])
|
||||
|
||||
@php
|
||||
$format = is_array($format) ? \Illuminate\Support\Js::encode($format) : $format;
|
||||
|
||||
$field ??= $axis === 'x' ? 'date' : $field;
|
||||
@endphp
|
||||
|
||||
<template {{ $attributes->merge([
|
||||
'name' => 'axis',
|
||||
'axis' => $axis,
|
||||
'format' => $format,
|
||||
'position' => $position,
|
||||
'tick-values' => is_string($tickValues) ? $tickValues : json_encode($tickValues),
|
||||
]) }} @if ($field) field="{{ $field }}" @endif>
|
||||
{{ $slot }}
|
||||
</template>
|
||||
Reference in New Issue
Block a user