@props([
'name', // Livewire property name for HTML signature, e.g. "signature"
'textName' => null, // Optional Livewire property name for plain-text signature
'label' => 'Email signature',
'help' => 'Appended to outgoing emails.',
'rows' => 5,
])
@php
$editorId = 'sig-' . md5($name . uniqid('', true));
@endphp
{{--
Hidden input that Livewire actually binds to. The Trix editor pushes
its HTML value into this input on every change via a native 'input'
event so wire:model.live picks it up.
--}}
{{-- wire:ignore prevents Livewire from morphing Trix's DOM --}}
@if($help)
{{ $help }}
@endif
@if($textName)
Plain-text version (optional, used when no HTML is rendered)
Leave blank to auto-derive from the HTML above when sending.
@endif
@once
@endonce