

Every state


default


hover


focus


requesting


requested


denied


failed


no-owner
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | "You don't have access to “Harbour works 2027”" | Title text. |
| message | string | null | "This project is shared with its members only. Ask the owner to add you." | Why it is locked, one or two lines. Null or left out: no line. |
| owner | { name: string; email?: string | null; photo?: EmptyStateNoAccessPhoto | null } | null | { name: "Nadia Peeters", email: "nadia@example.com", photo: { src: "/components/people/nadia.webp", alt: "", width: 4… | Who owns it. Null or left out: no owner row, and the request goes to the admins. |
| account | { email: string; switchHref: string } | null | { email: "sam@example.com", switchHref: "/sign-in?switch=1" } | The signed-in account and where to switch. Null or left out: no account line. |
| status | "idle" | "requested" | "denied" | "idle" | "requested" or "denied" draw those states (e.g. from your server). |
| back | { label: string; href: string } | null | { label: "Back to your projects", href: "/projects" } | Where else to go. Null or left out: no back link. |
| onRequest | () => void | Promise<void> | () => new Promise((done) => setTimeout(done, 1200)) | Called by the request button; reject the promise to show an error. |
| labels | EmptyStateNoAccessLabels | { owner: "Owner", request: "Request access", requesting: "Sending request…", requested: "Access requested", requested… | Labels. |
| className | string | – | Extra classes on the outer element. |
More empty states
All 7empty-state-06 is in UI ProGet UI Pro, €199


