X Enterprises
nuxt-x-marketing

DirectoryCategoryHero

Dark hero section for directory category pages with icon, name, count, description, and integrated search input.

DirectoryCategoryHero

A dark hero section designed for category landing pages. Shows the category icon, name, item count, and description. Optionally renders an integrated search input that emits the query in real-time.

Components

<XMarkDirectoryCategoryHero />

A dark hero section designed for category landing pages. Shows the category icon, name, item count, and description. Optionally renders an integrated search input that emits the query in real-time.

<XMarkDirectoryCategoryHero
  :category="{
    name: 'Design Tools',
    icon: 'i-lucide-palette',
    count: 142,
    description: 'Discover the best design tools for UI, UX, and graphic design.',
  }"
  :has-search="true"
  search-placeholder="Search design tools..."
  @search="handleSearch"
/>

Props

PropTypeDefaultDescription
categoryObjectDefault categoryCategory object { name, icon?, count?, description? }
hasSearchBooleantrueShow integrated search input
searchPlaceholderString'Search listings...'Input placeholder text

Emits

EventPayloadDescription
searchquery: stringEmitted on each keystroke and on Enter

AI Context

category: Directory
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkDirectoryCategoryHero
use-when: >
  Adding a dark hero section to directory category pages with the category
  name, icon, listing count, description, and integrated search input.
typical-page-section: Top of directory category pages, above the listing grid.
Copyright © 2026