useFont

Options

PropertyTypeDescriptionDefault Value
criticalBooleanOverride critical from component.inherit from component
const { $getFont } = useFonts({critical: true});

Return

PropertyDescription
isCritical
$getFont

Example

<template>
  <span v-font="$getFont(…)"></span>
</template>

<script setup>
  import useFonts from '#speedkit/composables/fonts';
  const { $getFont } = useFonts();
</script>
Table of Contents