An empty state that arrives: a crop-mark frame settles, a reticle draws itself, then a condensed title, a line of body and your actions; it fades up and away when content arrives.
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/empty-state.jsonpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/empty-state.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
import { EmptyState } from "@/components/ui/notchset/empty-state";
import { Button } from "@/components/ui/notchset/button";
export function NoEvals({ onCreate }: { onCreate: () => void }) {
return (
<EmptyState title="No evals yet" actions={<Button onClick={onCreate}>Create eval</Button>}>
Evals score Planner before every deploy.
</EmptyState>
);
}title–
ReactNodeWhat's empty.
children–
ReactNodeWhat to do about it.
actions–
ReactNodeYour buttons.
in–
booleanFalse fades it out (inert).
components/ui/notchset/empty-state.tsx