@php [$property, $error, $id, $entangle] = $bind($attributes, $errors ?? null, $livewire); $personalize = $classes(); $value = $sanitize($attributes, $property, $livewire); @endphp @if (!$livewire && $property) @endif
whereStartsWith('x-on')->except('x-on:erase') }} @class([ '!block', $personalize['input.wrapper'], $personalize['input.color.base'] => !$error, $personalize['input.color.background'] => !$attributes->get('disabled') && !$attributes->get('readonly'), $personalize['input.color.disabled'] => $attributes->get('disabled') || $attributes->get('readonly'), $personalize['error'] => $error ])>
whereDoesntStartWith('wire:model') // We need to remove the value and name attributes to avoid // conflicts when component is used in non-livewire mode ->except(['value', 'name']) ->class([ 'w-4', $personalize['input.base'], $personalize['input.color.base'] => !$error, $personalize['input.color.background'], $personalize['error'] => $error ]) }} x-on:keydown="add($event)" x-on:keydown.backspace="remove(model?.length - 1, $event)" x-model="tag" x-ref="input" enterkeyhint="done">