Twitter2.3k

Empty

Use the Empty component to display a empty state.

No Projects Yet
You haven't created any projects yet. Get started by creating your first project.

Installation

ng g @spartan-ng/cli:ui empty

Usage

import { HlmEmptyImports } from '@spartan-ng/helm/empty';
<div hlmEmpty>
	<div hlmEmptyHeader>
		<div hlmEmptyMedia variant="icon">
			<ng-icon name="lucideFolderCode" />
		</div>
		<div hlmEmptyTitle>No Projects Yet</div>
		<div hlmEmptyDescription>
			You haven&apos;t created any projects yet. Get started by creating your first project.
		</div>
	</div>
	<div hlmEmptyContent>
		<div class="flex gap-2">
			<button hlmBtn>Create Project</button>
			<button hlmBtn variant="outline">Import Project</button>
		</div>
	</div>
</div>

Examples

Outline

Use the border utility class to create a outline empty state.

Cloud Storage Empty
Upload files to your cloud storage to access them anywhere.

Background

Use the bg-* and bg-gradient-* utilities to add a background to the empty state.

No notifications
You're all caught up. New notifications will appear here.

Avatar

Use the EmptyMedia component to display an avatar in the empty state.

RG
User Offline
This user is currently offline. You can leave a message to notify them or try again later.

Avatar Group

Use the EmptyMedia component to display an avatar group in the empty state.

A1A2A3
No Team Members
Invite your team to collaborate on this project.

Helm API

HlmEmptyContent

Selector: [hlmEmptyContent],hlm-empty-content

HlmEmptyDescription

Selector: [hlmEmptyDescription]

HlmEmptyHeader

Selector: [hlmEmptyHeader],hlm-empty-header

HlmEmptyMedia

Selector: [hlmEmptyMedia],hlm-empty-media

Inputs

PropTypeDefaultDescription
variant EmptyMediaVariants['variant'] --

HlmEmptyTitle

Selector: [hlmEmptyTitle]

HlmEmpty

Selector: [hlmEmpty],hlm-empty

Field Dropdown Menu