SummaryItem

core package3.2.2

Note: All components shown on this site are supported by the Constellation design system. To learn how to configure Theme Cosmos, visit Pega Community.

The SummaryItem component is a formatted layout ideal for displaying various levels of information, with visuals, metadata and actions. SummaryItems are used within the SummaryList component, but may also appear on their own.

Usage

SummaryItems are composed of a visual region often used by Avatars, Images, or Icons, primary and secondary regions ideal for Text or MetaLists, and an actions region that can support Buttons or more typically MenuButtons. Only the primary region is required.

The regions for a SummaryItem are managed by the Grid component and position the primary region above the secondary region in the middle of the container with the visual and actions regions on either end. SummaryItems accept Grid container props to manipulate the positioning of the regions. If you are confined by space, the primary and secondary regions can respond to any overflow using the provided overflowStrategy, which is set to wrap by default.

Example

This is the primary info
  • email@example.com
  • Verified
  • Go to Pega.com

Related components

Properties

NameDescriptionDefaultType
primary*Region for the primary information.
boolean |ReactChild |ReactFragment |ReactPortal 
actionsRegion for adding Actions, Buttons, or Links.ReactNode
asHTML tag to render the SummaryItem's element with.ElementType<any>
containerGridContainerProps
overflowStrategyDetermines how the text within primary and secondary fields should handle overflow."wrap"
'ellipsis' |'wrap' 
refRef for the SummaryItem.Ref<HTMLElement>
secondaryRegion for displaying supporting metadata.ReactNode
visualRegion for an Avatar, Icon, or other supporting visual.ReactNode