@php [$property, $error, $id] = $bind($attributes, $errors ?? null, $livewire); $personalize = $classes(); [$position, $alignment, $label] = $sloteable($label); // We remove any bg color classes from the wrapper if there // is an error to apply the red bg color to the input instead $personalize['wrapper.class'] = $error ? preg_replace('/\bbg-[a-zA-Z0-9-]+/', '', $personalize['background.class']) : $personalize['background.class']; @endphp
class([ $personalize['input.class'], $personalize['input.sizes.' . $size], ]) }}>
$error ])>