Core Dynamic ComponentsFilter Orchestrator

DynamicHeader

DynamicHeader bridges the user experience across data tables and card grids. It provides a real-time debounced search input, breadcrumb subtitles, custom left and right action slots, and action buttons to trigger FilterDrawer, ColumnDrawer, and DownloadModal.

Debounced search automatically synchronized with useGridFilters
Breadcrumb subTitles array with chevron separators
Custom actionButton slot (e.g. '+ New Entry')
Built-in refresh button with onRefresh callback
Seamlessly pairs with DynamicTable and DynamicCard using filterKey

Props & Configuration

8 props

Complete property specifications, parameter types, and default fallbacks.

PropertyTypeDefaultDescription
filterKeyRequiredstring—Grid filter key to synchronize search queries and column settings.
titleRequiredstring—Primary header title text.
subTitlesstring[][]Breadcrumb hierarchy path displayed above or beside the title.
searchPlaceholderstring"Search here"Placeholder text for the search input box.
actionButtonReact.ReactNode—Primary CTA button rendered on the right.
onRefresh() => void—Callback triggered when clicking the reload icon.
leftSectionReact.ReactNode—Custom content rendered on the left.
rightSectionReact.ReactNode—Custom content rendered on the right.

Interactive Examples & Live Previews

2 Demos

Every example includes its own live, interactive preview element alongside the corresponding copyable TypeScript snippet.

Example 1

Standard Search & Refresh Header

Basic header with instant search query connected to a data grid.

Live Interactive Demo

Orders Management

Live Feed

Real-time synchronization with active grid filter store

Current Search Value:(none)
DynamicHeader.basic.tsxtsx
1import React from "react";
2import { DynamicHeader } from "antd-dynamic-ui";
3
4export default function BasicHeader() {
5 return (
6 <DynamicHeader
7 filterKey="invoices_grid"
8 title="Invoices & Billing"
9 searchPlaceholder="Search invoices by invoice number or client..."
10 onRefresh={() => alert("Refreshed!")}
11 />
12 );
13}
Example 2

Complete Header with Breadcrumbs & Action Button

Full header with multi-level subtitles, custom primary button, and search.

Live Interactive Demo

Enterprise Accounts Directory

2 Active Filters

Synchronized with useGridFilters Zustand store across table and drawers

Active Filter Tags:Status: ActiveRegion: US-East
DynamicHeader.complete.tsxtsx
1import React from "react";
2import { DynamicHeader, ButtonField } from "antd-dynamic-ui";
3import { Plus } from "lucide-react";
4
5export default function CompleteHeader() {
6 return (
7 <DynamicHeader
8 filterKey="products_grid"
9 title="Product Catalog"
10 subTitles={["Storefront", "Catalog Management", "Spring 2026"]}
11 searchPlaceholder="Filter SKUs, barcodes, or brands..."
12 actionButton={
13 <ButtonField type="primary" icon={<Plus size={16} />}>
14 Create New Product
15 </ButtonField>
16 }
17 onRefresh={() => console.log("Reloading dataset...")}
18 />
19 );
20}

Frequently Asked Questions & Quick Solutions

Architectural patterns, React 19 compatibility, and integration tips for DynamicHeader.

How does DynamicHeader integrate with Ant Design 5.x and Next.js 15?▼

DynamicHeader is designed as an enhanced, declarative wrapper for Ant Design. It fully supports Next.js 15 App Router when using @ant-design/nextjs-registry, eliminating SSR hydration mismatches and guaranteeing 0ms layout thrashing.

Can I customize validation, themes, and props for DynamicHeader?▼

Yes. Every prop is fully typed in TypeScript 5 with comprehensive Intellisense. You can pass custom styling via className or style props, configure global Ant Design themes via ConfigProvider, and extend validation logic seamlessly.