Skip to content

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

Terminal
pnpm add @elsikora/keystone-ui-kit

Usage

Import
import { Empty, EmptyTitle } from "@elsikora/keystone-ui-kit";
docs/empty/default.example.tsx
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

PropTypeDefaultDescription
classNamestring-More classes, added after the kit's.

EmptyTitle

PropTypeDefaultDescription
asChildbooleanfalseDraws the title on its one child (an h1 when the empty state is the page itself) instead of an h2.