Components / Data
EmptyState
Placeholder for an empty list or panel.
Extracted fromExplorer
Import
tsx
import { EmptyState } from "@somnia-chain/ui"
// in a Next.js app, internal links use next/link:
import { EmptyState } from "@somnia-chain/ui/next"Examples
Empty panel
No subscriptions yet
Subscribe a contract to an event or a schedule and it will show up here.
examples/empty-state/default.tsxShow codeHide code
tsx
import { Button, EmptyState, Panel } from "@somnia-chain/ui"
import { Inbox } from "lucide-react"
export default function EmptyStateExample() {
return (
<Panel className="max-w-xl">
<EmptyState title="No subscriptions yet" icon={<Inbox className="size-4" />}>
Subscribe a contract to an event or a schedule and it will show up here.
</EmptyState>
<div className="flex justify-center pb-10">
<Button href="#" size="sm">
New subscription
</Button>
</div>
</Panel>
)
}Props
EmptyState