Section intro stacked

Use this section intro component to provide a heading, link and itemized content in a stacked layout.

Ready to use
import {SectionIntroStacked} from '@primer/react-brand'

Examples

Default

Loading

With icon items

Loading

GridLine variant

Use variant="gridline" to apply an alternative visual style with horizontal and vertical borders.

Loading

Component props

SectionIntroStacked Required

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueContent to include within the section intro component
variant'default', 'gridline''default'falseSets the visual variant of the component.
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element
animateAnimatePropsfalseAnimation configuration for the component

Forwards all standard HTML attributes for <header> elements.

SectionIntroStacked.Heading Required

Required node that is used to provide a heading for the section.

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueContent to be displayed inside the heading component.
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element
animateAnimatePropsfalseAnimation configuration for the component

Forwards all props from the Heading component, including as, size, and weight.

Optional node that can be used to provide a link.

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueContent to be displayed inside the link
hrefstringundefinedtrueThe URL that the link points to
variantdefault, accentaccentfalseVisual style variant for the link
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element

Forwards most props from the Link component, but with a default size of medium.

SectionIntroStacked.Description

Optional node that can be used to provide a short description.

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueContent to be displayed inside the description
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element

SectionIntroStacked.Items Required

Container for a list of items.

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueSectionIntroStacked.Item components
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element
animateAnimatePropsfalseAnimation configuration for the component

SectionIntroStacked.Item Required

Individual item within the items list.

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueContent to be displayed inside the item. Accepts plain text with optional <b> or <em> for emphasis, or SectionIntroStacked.ItemIcon, SectionIntroStacked.ItemHeading, and SectionIntroStacked.ItemDescription sub-components
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element

SectionIntroStacked.ItemIcon

Optional icon displayed alongside item content.

nametypedefaultrequireddescription
iconIconundefinedtrueThe Octicon icon component to display
colorstringgreenfalseColor variant for the icon background
classNamestringfalseSets a custom class on the root element

Forwards all props from the Icon component.

SectionIntroStacked.ItemHeading

Optional heading for an item when using sub-components.

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueContent to be displayed inside the heading
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element

Forwards all props from the Heading component, including as, size, and weight. Defaults to as="h3".

SectionIntroStacked.ItemDescription

Optional description for an item when using sub-components.

nametypedefaultrequireddescription
childrenReactNode, ReactNode[]undefinedtrueContent to be displayed inside the item description
classNamestringfalseSets a custom class on the root element
idstringfalseSets a custom id on the root element