Skip to content

No Data

The NoData component renders a centered empty state used across the application when a list, table, or view has no content (or after an error). It pairs an illustration with a title, one or more description lines, and optional primary / secondary / split-button actions.

Variations

Without actions

A minimal empty state — just an illustration, title, and description.

Installation

import { NoData } from "@harnessio/ui/components";
<NoData
imageName="no-data-cog"
title="No pipelines yet"
description={["Create your first pipeline to get started."]}
primaryButton={{
label: "Create pipeline",
icon: "plus",
to: "/pipelines/new",
}}
secondaryButton={{ label: "Learn more", variant: "outline" }}
/>;