import { Spinner } from "@vortexlabs/vortex-native";
<Spinner
size="sm"
ariaLabel="Loading"
/>Features
- Indicates work with no known completion percentage.
- Supports four responsive sizes.
- Uses the surrounding Vortex color with
color="inherit".
Sizes
Use smaller sizes beside text or controls and larger sizes for loading regions.
<Stack direction="row" align="center" gap={3}>
<Spinner size="xs" ariaLabel="Loading files" />
<Spinner size="sm" ariaLabel="Loading files" />
<Spinner size="md" ariaLabel="Loading files" />
<Spinner size="lg" ariaLabel="Loading files" />
</Stack>Responsive Sizes
Pass a breakpoint object to change the size with the window width.
<Spinner size={{ xs: "sm", md: "lg" }} ariaLabel="Loading files" />Color
A standalone spinner uses the theme's default foreground, including with color="inherit".
Accessibility
Description
Provide a nonblank
ariaLabel for a standalone spinner. Pass undefined when a parent already announces loading.