mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
21 lines
591 B
PHP
21 lines
591 B
PHP
@aware(['mode' => 'numeric', 'private' => false])
|
|
|
|
@php
|
|
$attributes = $attributes
|
|
->merge([
|
|
'class' => 'w-8! grow-0 has-focus-within:z-10',
|
|
'class:input' => 'px-0! py-3 text-center disabled:opacity-75 disabled:shadow-xs! dark:disabled:shadow-none!',
|
|
])
|
|
->merge(['data-flux-otp-input' => ''])
|
|
;
|
|
|
|
if ($mode == 'numeric') {
|
|
$attributes = $attributes->merge(['inputmode' => 'numeric']);
|
|
}
|
|
|
|
if ($private) {
|
|
$attributes = $attributes->merge(['type' => 'password']);
|
|
}
|
|
@endphp
|
|
|
|
<flux:input {{ $attributes }} /> |