Files
einundzwanzig-portal/resources/views/vendor/wireui/components/inputs/maskable.blade.php
2024-09-10 20:29:50 +02:00

26 lines
856 B
PHP

<div x-data="wireui_inputs_maskable({
isLazy: @boolean($attributes->wire('model')->hasModifier('lazy')),
model: @entangle($attributes->wire('model')),
emitFormatted: @boolean($emitFormatted),
mask: {{ $mask }},
})" {{ $attributes->only('wire:key') }}>
<x-dynamic-component
:component="WireUi::component('input')"
:borderless="$borderless"
:shadowless="$shadowless"
:label="$label"
:hint="$hint"
:corner-hint="$cornerHint"
:icon="$icon"
:right-icon="$rightIcon"
:prefix="$prefix"
:suffix="$suffix"
:prepend="$prepend"
:append="$append"
x-model="input"
x-on:input="onInput($event.target.value)"
x-on:blur="emitInput"
{{ $attributes->whereDoesntStartWith(['wire:model', 'x-model', 'wire:key']) }}
/>
</div>