Atoms
Empty
Empty state placeholder with media, title, and description.
FormanceCustom component built for Formance products.
Installation#
npx shadcn@latest add @formance/emptyInstall the following dependencies:
npm install class-variance-authorityCopy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
import { Empty, EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, EmptyContent,} from '@/components/ui/empty'<Empty className="border"> <EmptyHeader> <EmptyMedia variant="icon"> <InboxIcon /> </EmptyMedia> <EmptyTitle>No transactions found</EmptyTitle> <EmptyDescription> There are no transactions matching your filters. </EmptyDescription> </EmptyHeader></Empty>