On this page

Spinner

Install, props and the parts Spinner is built from.

Install

Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/spinner.json

Use

<script setup lang="ts">
import { Spinner } from '@/components/ui/spinner'
</script>

<template>
  <div aria-busy="true" class="flex items-center gap-(--bh-space-100)">
    <Spinner aria-label="Loading orders" />
    <span aria-hidden="true">Loading orders…</span>
  </div>
</template>

Props

Prop Values Notes
delay boolean true (default): shows after motion.wait.spinner, read from the token. false: shows at once
aria-label string Default “Loading”. Translate it, and say what is loading
class string Colour follows the text; set a size class to change size.icon.default

Built on

The Lucide loader-circle icon with role="status", with the control-center Spinner API. Beehexa adds the icon of D11, the token speed and the wait of D18 (delay).