PolyHunter

EmptyResults

Responsive empty-state card with a default search icon for lists and search results — icon, title, description and CTA, all centered. All colors and type from tokens in @npolyhunter/ds/theme.css.

Playground

Live preview

No missions found

Try adjusting your filters or search to find what you're looking for.

Examples

Variations

No results

Nothing matched your search.

No results

New activity will appear here.

The search icon is shown by default; pass null to hide it. description and cta render only when passed; title defaults to "No results".

Anatomy

// Full container width, 210px min height
// radius/large · border border-default · bg surface/container
// padding spacing/6 (24px) · gap spacing/4 (16px) · all centered
//
// Title:       type-title-medium  (Funnel Display 600, 20/28, -0.5%)
// Description: type-body-medium  (Funnel Sans 400, 14/20)
// Icon color:  foreground-placeholder

Code

import { Button, EmptyResults } from "@npolyhunter/ui";
import { FileSearchBoldDuotoneIcon } from "@npolyhunter/ui/icons";

<EmptyResults
  icon={<FileSearchBoldDuotoneIcon />}
  title="No missions found"
  description="Try adjusting your filters or search to find what you're looking for."
  cta={<Button size="small">Clear filters</Button>}
/>

// Only a title (defaults to "No results")
<EmptyResults />

Code

import { Button, EmptyResults } from "@npolyhunter/ui";
import { FileSearchBoldDuotoneIcon } from "@npolyhunter/ui/icons";

<EmptyResults
  icon={<FileSearchBoldDuotoneIcon />}
  title="No missions found"
  description="Try adjusting your filters or search to find what you're looking for."
  cta={<Button size="small">Clear filters</Button>}
/>

// Only a title (defaults to "No results")
<EmptyResults />

Used in

Includes use through shared UI components.

AppBack Office