Skip to content

Font

The Font component renders font declarations with optional web font support and fallbacks. It includes MSO-specific styles for Outlook compatibility, ensuring your custom fonts degrade gracefully.

Usage

blade
<x-envelop::head>
  <x-envelop::font
    font-family="Inter"
    fallback="Arial, sans-serif"
    web-font="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
  />
</x-envelop::head>

Props

PropTypeRequiredDefaultDescription
fontFamilystringYes-Primary font family name
fallbackstringNo'Arial, sans-serif'Fallback font stack
webFontstringNonullURL to web font stylesheet
fontWeightstringNo'400'Default font weight
fontStylestringNo'normal'Default font style

Released under the MIT License.