Skip to content

useFont

Options

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

Return

PropertyDescription
isCritical
$getFont

Example

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

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