Skip to content

Html

The Html component renders the DOCTYPE and root html element with XHTML namespace. It includes language and text direction attributes for internationalization support.

Usage

blade
<x-envelop::html>
  <x-envelop::head title="Email" />
  <x-envelop::body>
    <!-- Email content -->
  </x-envelop::body>
</x-envelop::html>

Props

PropTypeRequiredDefaultDescription
langstringNo'en'Language code (ISO 639-1)
dirstringNo'ltr'Text direction: 'ltr' or 'rtl'

Released under the MIT License.