@php $statePath = $getStatePath(); @endphp @if ($isDisabled())
{!! str($getState())->markdown()->sanitizeHtml() !!}
@else
merge($getExtraAttributes(), escape: false) ->class([ 'fi-fo-markdown-editor max-w-full overflow-hidden rounded-lg bg-white font-mono text-base text-gray-950 shadow-sm ring-1 transition duration-75 focus-within:ring-2 dark:bg-white/5 dark:text-white sm:text-sm', 'ring-gray-950/10 focus-within:ring-primary-600 dark:ring-white/20 dark:focus-within:ring-primary-500' => ! $errors->has($statePath), 'ring-danger-600 focus-within:ring-danger-600 dark:ring-danger-500 dark:focus-within:ring-danger-500' => $errors->has($statePath), ]) }} >
{ $wire.upload(`componentFileAttachments.{{ $statePath }}`, file, () => { $wire .getFormComponentFileAttachmentUrl('{{ $statePath }}') .then((url) => { if (! url) { return onError() } onSuccess(url) }) }) }, })" x-ignore wire:ignore {{ $getExtraAlpineAttributeBag() }} >
@endif