Progress.
A clear signal of what comes next.
Live preview
import { Progress } from "luminescent";
import "luminescent/style.css";
export function Example() {
return <Progress value={64} label="Preparing your workspace" showValue />;
}
Installation
npm install luminescent
Import luminescent/style.css once at your application root. The example above uses the same package implementation as Storybook.
Variants and states
Use the preview controls to explore the supported variants, sizes, disabled/loading states and reduced motion. Controls appear only where the component exposes the corresponding prop. Theme and glow apply to every component.
Controlled and uncontrolled state
State contract: value (omit for indeterminate). Omit the controlled prop to let the component own its initial state; supply a value and callback when your application owns it. Native uncontrolled fields and state-backed form controls participate in form reset. Controlled state must be reset by the application.
API reference
Generated from the source TypeScript interfaces. Native attributes, className, style, aria-* and data-* also pass through to the documented element. Import ProgressProps from the package for the full inherited contract.
| Prop | Type | Details |
|---|---|---|
value | number | Optional unless marked required. |
max | number | Optional unless marked required. |
label | string | Optional unless marked required. |
showValue | boolean | Optional unless marked required. |
variant | 'linear' | 'circular' | Optional unless marked required. |
glowColor | GlowColor | Optional unless marked required. |
Accessibility and keyboard
Exposes progressbar, min/max and current value. Omit value for indeterminate progress. Supply a descriptive label; updates do not continuously interrupt screen readers.
Keep labels meaningful and test application-level contrast, focus order and screen-reader output. See the accessibility guide for composition requirements.
Theme customization
import { LuminescentProvider, Progress } from "luminescent";
import "luminescent/style.css";
export function Example() {
return (
<LuminescentProvider theme="light" accent="violet" glow="subtle">
<Progress value={64} label="Preparing your workspace" showValue />
</LuminescentProvider>
);
}
Switch between light and dark in the preview, or open the playground for a larger workspace. Custom CSS variables can override spacing, color, typography and effects.