Learn about visual thememore

Box

Boxes provide containers to group related content and actions.

Demo

Heading


Link for section titled Usage
Usage

Use when

Use boxes as containers for related content and actions on pages such action hubs and record pages.

undefined
Do use boxes to organize content on action hubs.
undefined
Do use boxes to organize content on record pages.

Don't use when

Don't use boxes to separate individual items in a list. Use repeaters or other layout approaches instead.

undefined
Don't use boxes to separate individual items in a list.
undefined
Do use boxes to group related items in a section.

Don't use boxes to organize content in modal forms or split view workspaces. Use headers and spacing instead.

undefined
Don't use boxes to organize content in forms.

Don't add boxes to pre-defined sections of page layouts. For example, don't add boxes around lists on list pages or around related links on action hubs.

undefined
Don't add boxes to the sections in the top right of action hubs.
undefined
Don't add boxes to list pages.

Link for section titled Anatomy
Anatomy

1
Container
2
Content
3
Heading (optional)
4
Help inline button (optional)
5
Control button (optional)
image

Link for section titled Options
Options

Heading

In general, boxes should include short headings to describe their contents. However, headings are optional so that consumers can exclude them when boxes contain content that doesn't require headings, such as visualizations or multimedia content.

To match to a page's semantic and visual hierarchy, adjust the box heading's headingLevel and headingStyle properties. In most cases, box headings follow the page heading in the page hierarchy, and these properties should be set to 2.

Help inline button

When you need to supplement a box with additional information but don't require persistent inline help, you can place a help inline button beside the heading to invoke contextual user assistance.

Control button

You can include a button in the top right to provide an edit action or a context menu with multiple actions.

undefined
Do include an edit button for editable content.
undefined
Do include a context menu for multiple actions.

Don't include multiple buttons in boxes. Instead, break up content so that boxes only contain related content that users can manage together.

undefined
Don't include multiple buttons.

Link for section titled Layout
Layout

Use proper spacing between boxes. Depending on your scenario, you can use fluid grid, CSS flexbox, CSS Grid or spacing classes.

undefined
Use proper spacing between boxes.

Link for section titled Related information
Related information

Components

Guidelines