Import
import { EmptyState } from '@meteorack/sdk-react';How To Use It
- Render it when a query succeeds but returns no rows, modules, or activity to show.
- Include a clear next step when the user can fix the empty state by creating, connecting, or installing something.
Works Well With
Props
icon?: ReactNodeOptional visual displayed above the title.
title: stringPrimary empty-state heading.
description?: stringSupporting explanation shown under the title.
action?: ReactNodeOptional recovery or next-step action.
className?: stringOptional class name for the empty-state wrapper.
Example
EmptyState.tsx
import { EmptyState, Button } from '@meteorack/sdk-react';
export function ModulesEmptyState() {
return (
<EmptyState
title="No Modules Found"
description="Install your first Meteorack module to get started."
action={<Button variant="primary">Browse modules</Button>}
/>
);
}