Spinner
Indicates indeterminate loading.
Imports
Use the same component slug for React, Vue, and style token lookup. Do not import components from package roots.
import { Spinner } from "@line/abc-def-react/spinner";<script setup lang="ts">
import { Spinner } from "@line/abc-def-vue/spinner";
</script>Shadcn references
Compare the corresponding shadcn React and Vue documentation for the same component slug.
Basic usage
import { Spinner } from "@line/abc-def-react/spinner";
export function Example() {
return <Spinner aria-label="Loading" />;
}<script setup lang="ts">
import { Spinner } from "@line/abc-def-vue/spinner";
</script>
<template>
<Spinner aria-label="Loading" />
</template>Component tokens
This component does not define a dedicated component token file. It inherits shared semantic tokens and utility classes.
Composition exports
SpinnerUsage notes
- Use with an accessible label when loading blocks interaction.
- Prefer progress for determinate tasks.
- Related component tokens use the `spinner` token group in `@line/abc-def-styles/css`.