@nucleux/md3-loading-indicator
v0.12.0
Published
Material 3 loading indicator — Nucleux agentic UI for React.
Downloads
3,078
Maintainers
Readme
@nucleux/md3-loading-indicator
Material 3 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
Md3LoadingIndicator— the M3 Expressive shape-morphing indicator, indeterminaterole="progressbar";variantdefault/contained,sizein px (default 48),aria-label(default "Loading"). Holds still and fades gently underprefers-reduced-motion.- Types:
Md3LoadingIndicatorProps,Md3LoadingIndicatorVariant
Install
pnpm add @nucleux/md3-loading-indicator @nucleux/tokensreact / react-dom are peer dependencies.
Usage
import { Md3LoadingIndicator } from "@nucleux/md3-loading-indicator";
<Md3LoadingIndicator aria-label="Loading messages" />
<Md3LoadingIndicator variant="contained" aria-label="Generating a reply" />Requires the theme once in your app: import "@nucleux/tokens/styles.css";
and the Tailwind preset from @nucleux/tokens/preset.
License
MIT © Nucleux
