Empty

A placeholder component for empty states, featuring premium visual variants, custom icons, and built-in typography handling.

Preview

Empty
TypeScript

No Results Found

We couldn't find what you were looking for. Please try a different search or filter.

Installation

bash
bash
1
npx shadcn@latest add https://fysk.dev/r/empty.json

Usage

tsx
tsx
1
import { Empty } from "@/components/ui"
2
3
<Empty
4
title="No files"
5
description="Upload your first file to get started."
6
/>

Examples

Glass Variant

The glass variant features a subtle frosted background, consistent with other glass components in Fysk.

Component
TypeScript

Ready to Start?

Your dashboard is currently empty. Connect your first integration to see insights.

Minimal (Ghost)

A subtle, clean empty state without borders or background, ideal for smaller sections.

Component
TypeScript

No Comments

Be the first to start the conversation.

Override Icons

While variants come with a default icon, you can override it with any React node.

Component
TypeScript

Connect Integration

Connect your favorite tools to unlock powerful automation features.

Features

  • Consistent Styles: Designed to match theButton and Input aesthetic with rounded corners and muted colors.

  • Variants: Includesdefault (dashed),secondary,outline,glass, andghost styles.

  • Flexible Sizing: Support for sm, md, lg, and fill footprints.

Props

PropTypeDefaultDescription
variant"default" | "secondary" | "glass" | "outline" | "ghost""default"The visual style of the container.
size"sm" | "md" | "lg" | "fill""md"Adjusts padding and minimum height.
titlestring-The primary headline.
descriptionstring-Supporting explanatory text.
iconReact.Node-Custom icon override.
actionReact.Node-Call-to-action slot.
titleClassNamestring-Additional class for the title.
descriptionClassNamestring-Additional class for the description.

The component is fully responsive and handles focus/accessibility states automatically.

Built with 💖 | Created by Yashraj