Empty state
The content that an area shows when it has nothing to show. It has a mark, a title that names what is missing, a sentence, and one action. The file sets the arrangement and the order of importance. It has two named action slots, not a list, because three buttons in an empty state is the problem that this block prevents. The type enforces this limit. The block has no reason prop. An area can be empty for three reasons: nothing exists yet, a filter matched nothing, or something failed or is not yours to see. These reasons differ in words and in importance, not in arrangement. So they are demos and text, not a switch. Many libraries show “Create your first project” under a search that returned nothing, and the second demo below shows the alternative. The block draws no panel and sets no height. It centres in the area that holds it, and it fits its content when that area has no height.
import { Button } from "@kushagradhawan/kookie-ui-react";import { EmptyState } from "../../blocks/empty-state";export default function Example() { return ( <EmptyState title="No projects yet" description="A project holds your files, your team and everything they ship." action={<Button emphasis="loud">New project</Button>} secondary={<Button emphasis="quiet">Import from GitHub</Button>} /> );}