PatternFly

Details page

Beta

Info alert:Beta feature

This beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the PatternFly forum or via Slack. To learn more about the process, visit our about page or our Beta components page on GitHub.

A details page component is used to provide users with details on a resource that they access.

Examples

Basic details page

A basic details page typically contains elements like breadcrumbs, a pageHeading, actions, and tabs.

Details page content should be customized within the appropriate tab to fit your use case.

example-resource

Ready
Details content

Details page header

The pageHeader for a details page contains the breadcrumbs, pageHeading, and any actions.

example-resource

Ready

Details page action menu

The details page action menu contains multiple actions that users can take.

Details page action menu with grouped actions

To group related actions in a details page action menu, use the groupedActions property.

Details page horizontal navigation

A details page places tabs in a <HorizontalNav> component.

Details content

Props

DetailsPage

*required
NameTypeDefaultDescription
childrenReact.ReactNodeDetailsPage custom children component
tabsNo type info[]

DetailsPageHeader

*required
NameTypeDefaultDescription
pageHeadingrequiredPageHeadingTop content area of details page
actionButtonsActionButtonProps[]One or more action buttons that appear to the right of the title
actionMenuActionMenuPropsMenu that appears to the right of the title
breadcrumbsReact.ReactNodenullBreadcrumbs component

PageHeading

*required
NameTypeDefaultDescription
titlerequiredstringTitle for page heading
iconAfterTitleReact.ReactNodeOptional icon for page heading (appears to the right of the page heading's title)
iconBeforeTitleReact.ReactNodeOptional icon for page heading (appears to the left of the page heading's title)
labelPageHeadingLabelPropsOptional label for page heading

ActionButton

*required
NameTypeDefaultDescription
tooltipReact.ReactNodeContent for the action button tooltip
tooltipPropsOmit<TooltipProps, 'triggerRef'>Tooltip props

ActionMenu

*required
NameTypeDefaultDescription
actionsNo type info[]
groupedActionsNo type info[]
idstring'actions'Optional id for action menu (defaults to 'actions')
isDisabledbooleanOptional flag to indicate whether action menu should be disabled
labelstring'Actions'Optional label for action menu (defaults to 'Actions')
popperPropsDropdownPopperPropsOptional popper props
variantActionMenuVariantActionMenuVariant.DROPDOWNOptional variant for action menu: DROPDOWN vs KEBAB (defaults to dropdown)

GroupedActionsProps

*required
NameTypeDefaultDescription
actionsrequiredActionProps[]Actions under this group.
groupIdrequiredstringA unique identifier for this group.

ActionProps

*required
NameTypeDefaultDescription

HorizontalNavProps

*required
NameTypeDefaultDescription
tabsrequiredOmit<TabProps, 'ref'>[]Navigation tabs
ariaLabelstringaria-label for all tabs
onTabSelect(event: React.MouseEvent<HTMLElement, MouseEvent>, eventKey: number | string) => voidCallback to handle tab selection

View source on GitHub

We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.