Resource Header

Displays a page-level header for a resource with icon or avatar, title, copyable ID, and action buttons.

Foo Corp

The ResourceHeader component is composed of several subcomponents that work together. The Root component provides a loading context that its children use to display skeletons automatically.

The outer container. Wraps children in a Flex with align="center" and justify="between". Provides the loading context to all child subcomponents.

PropTypeDefault
loadingbooleanfalse
childrenReact.ReactNode

Extends all Flex props.

Left-side container for the icon/avatar and title stack. Uses gap="5".

Extends all Flex props.

Displays an IconPanel at size "4" (56px). Renders a skeleton when loading.

PropTypeDefault
childrenReact.ReactNoderequired
variant"classic" | "solid""classic"

Displays a user avatar at size "3" (64px). Renders a circular skeleton when loading.

PropTypeDefault
srcstring
fallbackstringrequired

Renders a Heading as h2 at size "5". Renders a skeleton when loading.

Extends all Heading props except size and as.

Copyable resource ID using CopyChip with Code. Renders a skeleton when loading.

PropTypeDefault
childrenstringrequired
labelstring"ID"

Container for additional elements like status badges or email chips. Hidden when loading.

Extends all Flex props.

Container for action buttons positioned on the right side. Hidden when loading.

Extends all Flex props.

A minimal header with just a title.

Session

A title paired with a copyable resource ID.

user.created

Use the Icon subcomponent with text content for organization-style headers.

Acme Inc

Use variant="solid" with a ProviderIcon for integration-style headers.

GitHub Integration

Use the Avatar subcomponent for user-centric headers.

Jane Doe

jane@example.com

Use the Accessories subcomponent for status badges or metadata.

Okta Directory

Active

Use the Actions subcomponent for buttons on the right side of the header.

Webhook Endpoint

Set loading on the Root to show skeletons for Icon, Title, and Id. Accessories and Actions are hidden during loading.