Skip to content

Vue

<script setup>
import { Mulling } from 'mulling/vue';
defineProps(['status']);
</script>
<template>
<Mulling :state="status" />
</template>
  • Props: the mount() options, kebab-case in templates (reduced-motion, max-fps). See Options.
  • Attributes: class, style and data-* go on the wrapper element; aria-* attributes go on the loader’s labeled element.
  • Template ref: gives you update(), refresh() and element.
  • Server rendering: renders a correctly sized placeholder on the server.

For the smallest bundle, use mulling/vue/core and register loaders with use(): 7.4 kB plus your loaders, not counting Vue.