TheDocumentation Index
Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
PageHeader component and its sub-components are used to add action links to the header area of app pages. These components allow you to create primary and secondary actions that users can take within your app.

PageHeader
ThePageHeader component is the main wrapper component for primary and secondary header actions. It’s recommended to only include one instance of PageHeader in your app, and to avoid adding/removing it dynamically which can result in unexpected behavior.
Only PageHeader.PrimaryAction and PageHeader.SecondaryActions are supported as children.
Props
PageHeader.PrimaryAction
ThePageHeader.PrimaryAction component is a wrapper for the primary action in the page header. It can contain a PageHeader.PageLink component (for navigating to another page in your app) or a PageHeader.Link component (for URLs outside your app pages). The primary action is displayed as a button.
PageHeader can contain only one instance of PageHeader.PrimaryAction.

Props
PageHeader.SecondaryActions
ThePageHeader.SecondaryActions component is a wrapper for secondary actions that appear in an Actions dropdown menu next to the primary action. It can contain multiple PageHeader.PageLink components (for navigating to other pages in your app) or PageHeader.Link components (for URLs outside your app pages).

Props
PageHeader.PageLink
ThePageHeader.PageLink component renders a button that navigates to another page within your app when clicked. Use this component inside PageHeader.PrimaryAction or PageHeader.SecondaryActions for in-app navigation.
Props
PageHeader.Link
ThePageHeader.Link component renders a button that opens a URL outside your app when clicked. It behaves like the standard Link component, but is rendered as a button when used inside PageHeader.PrimaryAction or PageHeader.SecondaryActions.
Props
Guidelines
- DO: use
PageHeader.PrimaryActionfor the most important action on the page. - DO: use
PageHeader.PageLinkfor navigating to pages within your app andPageHeader.Linkfor any URLs outside your app pages. - DO: keep link labels short and action-oriented (e.g., “Documentation”, “Support”).
- DO: use
PageHeader.SecondaryActionsfor additional or less common actions. - DON’T: include more than one
PageHeader.PrimaryActionin a PageHeader. - DON’T: include components other than
PageHeader.PageLinkorPageHeader.LinkinPageHeader.PrimaryActionorPageHeader.SecondaryActions.