@nucleux/spinner
v0.12.0
Published
Animated loading indicator — Nucleux agentic UI for React.
Maintainers
Readme
@nucleux/spinner
Animated loading indicator — Nucleux agentic UI for React.
Part of Nucleux — agentic UI components for React. Install a single component, or the full kit via @nucleux/react.
Exports
Spinner— spinning icon withrole="status"andaria-label="Loading"(override the label to say what is loading)
Install
pnpm add @nucleux/spinner @nucleux/tokensreact / react-dom are peer dependencies.
Usage
import { Spinner } from "@nucleux/spinner";
<Spinner />
<Button disabled leftIcon={<Spinner aria-label="Saving" />}>Saving…</Button>Requires the theme once in your app: import "@nucleux/tokens/styles.css";
and the Tailwind preset from @nucleux/tokens/preset.
License
MIT © Nucleux
