Empty

Playground

Properties

Size
Icon
Title
Description
Action

Content

Title
Description
Button

Usage

Add Header, Title, Description and a next action in Content. Make the message clear about whether there is no content or an error occurred.

'use client';
import { Empty, EmptyHeader, EmptyTitle, EmptyDescription } from '@mbsw/ui';

export default function Example() {
  return (
    <Empty size="md">
      <EmptyHeader>
        <EmptyTitle>{"Add a project."}</EmptyTitle>
        <EmptyDescription>{"View and organize your work in one place."}</EmptyDescription>
      </EmptyHeader>
    </Empty>
  );
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition