Skip to content

EmptyState

Empty states provide a consistent layout for blank screens or empty lists.

import { EmptyState } from '@truongdq01/ui';
<EmptyState
title="No messages"
description="Start a conversation to see messages here."
action={{ label: 'New message', onPress: () => {} }}
/>;
PropTypeDefaultDescription
iconReactNode-Optional icon or illustration
titlestring-Main heading
descriptionstring-Supporting text
actionEmptyStateAction-Primary action button
secondaryActionEmptyStateAction-Secondary action
compactbooleanfalseTighter spacing for inline empty states
PropTypeDescription
labelstringButton text
onPress() => voidClick handler
variant"solid", "outline", "ghost"Button style