States
FeedbackShared empty, error and loading primitives used across DataTable and ChartCard — consistent voice and semantics everywhere your app needs them too.
import { EmptyState, ErrorState, LoadingState } from "@componentforge/react";
Examples
Empty → Loading → Error cycle
No integrations yet
Connect a tool to start syncing automatically.
Accessibility
- ErrorState renders role="alert"; LoadingState renders role="status" with aria-live="polite".
- Skeletons and spinners are aria-hidden decoration.
API reference
Selected props — every component also spreads native HTML attributes.
| Prop | Type | Default | Description |
|---|---|---|---|
| title / description / action | ReactNode | — | Composition slots. |
| compact | boolean | false | Dense layout for inline usage (tables, cards). |
| onRetry / retryLabel | — | "Retry" | ErrorState recovery affordance. |