Back to CompositionsProducts Import Add product
PageHeader
NavigationPage title with primary and secondary actions
Composed from
HeadingButtonButtonGroup
Example
Usage
import { PageHeader } from '@/components/polaris';
function Example() {
return (
<PageHeader
title="Products"
subtitle="Manage your product catalog"
badge="25"
badgeTone="info"
primaryAction={{ label: 'Add product', onAction: () => console.log('add') }}
secondaryActions={[
{ label: 'Export', onAction: () => console.log('export') },
]}
/>
);
}