Feedback
Empty
What a list says when it has nothing yet, and the first thing to do.
No releases yet
Upload a game folder to make its first release.
Installation
pnpm add @elsikora/keystone-ui-kitUsage
import { Empty, EmptyTitle } from "@elsikora/keystone-ui-kit";import { Button, Empty, EmptyContent, EmptyDescription, EmptyTitle } from "@elsikora/keystone-ui-kit";
export default function EmptyDefaultExample() { return ( <Empty> <EmptyTitle>No releases yet</EmptyTitle> <EmptyDescription>Upload a game folder to make its first release.</EmptyDescription> <EmptyContent> <Button>Upload a release</Button> </EmptyContent> </Empty> );}Examples
Default
No releases yet
Upload a game folder to make its first release.
A whole page
When the empty state is the page itself (a page not found), its title is the page's h1, through asChild.
This page does not exist.
The address names no page of this site.
API reference
Empty
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | More classes, added after the kit's. |
EmptyTitle
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | false | Draws the title on its one child (an h1 when the empty state is the page itself) instead of an h2. |