AutosaveIndicator
Quiet save status for autosaving forms — usually placed in a FormActions status slot.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Quiet save status for autosaving forms — usually placed in a FormActions status slot.
Accessibility
Always render a visible <label> (the label prop wires htmlFor/id for you). Errors set aria-invalid and are announced via aria-describedby. Required fields expose aria-required.
Install and import
npx shadcn@latest add @prism/autosave-indicator
import { AutosaveIndicator } from '@/components/prism/AutosaveIndicator';
In a no-build prototype, read it from the bundle instead: const { AutosaveIndicator } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
state | AutosaveState | — | |
savedAt | string | — | e.g. "2:14 PM" — used in the default "Saved {savedAt}" label. |
labels | Partial<Record<AutosaveState, string>> | — |