Empty StateEmpty State
결과가 없거나 오류가 났을 때 마스코트와 안내를 보여줍니다.Shows the mascot and guidance when there are no results or an error occurs.
표시Display
Meet your first bot
Give it a role and a task. It keeps working after you close the laptop.
Nothing matches
Try another name or clear the filter.
Something went wrong
We could not load your bots. Check the connection and try again.
import { Button, EmptyState } from "@horon-ai/react"; function Mascot({ name }: { name: string }) { return ( <span aria-hidden className="block size-full bg-contain bg-center bg-no-repeat" style={{ backgroundImage: `url(/mascots/${name}.webp)` }} /> ); } export default function EmptyStateDemo() { return ( <div className="flex flex-wrap items-start gap-6"> <EmptyState illustration={<Mascot name="horon-mascot-welcome" />} title="Meet your first bot" description="Give it a role and a task. It keeps working after you close the laptop." action={<Button>Create a bot</Button>} /> <EmptyState illustration={<Mascot name="horon-mascot-search" />} title="Nothing matches" description="Try another name or clear the filter." action={<Button>Clear filter</Button>} /> <EmptyState illustration={<Mascot name="horon-mascot-error" />} title="Something went wrong" description="We could not load your bots. Check the connection and try again." action={<Button>Try again</Button>} /> </div> ); }