videosphere
    Preparing search index...

    Type Alias ActionWithHref

    EmptyState Component

    Reusable UI component displayed when a list or page has no data. Supports an optional icon/illustration and an optional primary action (navigation via href or callback via onClick).

    With navigation action
    <EmptyState
    title="No videos yet"
    description="Upload your first video to get started."
    action={{ label: "Upload video", href: "/upload" }}
    />
    With callback action
    <EmptyState
    title="Something went wrong"
    description="We couldn't load the list."
    action={{ label: "Try again", onClick: () => refetch() }}
    />
    With icon
    <EmptyState
    icon={<InboxIcon className="h-12 w-12 text-muted-foreground" />}
    title="No messages"
    description="Your inbox is empty."
    />
    type ActionWithHref = {
        label: string;
        href: string;
    }
    Index

    Properties

    Properties

    label: string
    href: string