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.
Props & Configuration
8 propsComplete property specifications, parameter types, and default fallbacks.
| Property | Type | Default | Description |
|---|---|---|---|
| filterKeyRequired | string | — | Grid filter key to synchronize search queries and column settings. |
| titleRequired | string | — | Primary header title text. |
| subTitles | string[] | [] | Breadcrumb hierarchy path displayed above or beside the title. |
| searchPlaceholder | string | "Search here" | Placeholder text for the search input box. |
| actionButton | React.ReactNode | — | Primary CTA button rendered on the right. |
| onRefresh | () => void | — | Callback triggered when clicking the reload icon. |
| leftSection | React.ReactNode | — | Custom content rendered on the left. |
| rightSection | React.ReactNode | — | Custom content rendered on the right. |
Interactive Examples & Live Previews
2 DemosEvery example includes its own live, interactive preview element alongside the corresponding copyable TypeScript snippet.
Standard Search & Refresh Header
Basic header with instant search query connected to a data grid.
Orders Management
Live FeedReal-time synchronization with active grid filter store
1import React from "react";2import { DynamicHeader } from "antd-dynamic-ui";34export default function BasicHeader() {5 return (6 <DynamicHeader7 filterKey="invoices_grid"8 title="Invoices & Billing"9 searchPlaceholder="Search invoices by invoice number or client..."10 onRefresh={() => alert("Refreshed!")}11 />12 );13}
Complete Header with Breadcrumbs & Action Button
Full header with multi-level subtitles, custom primary button, and search.
Enterprise Accounts Directory
2 Active FiltersSynchronized with useGridFilters Zustand store across table and drawers
1import React from "react";2import { DynamicHeader, ButtonField } from "antd-dynamic-ui";3import { Plus } from "lucide-react";45export default function CompleteHeader() {6 return (7 <DynamicHeader8 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 Product15 </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.