Skip to main content

Polaris web components

Structure

BoxBox

Box

A generic container that provides a flexible alternative for custom designs not achievable with existing components. Use it to apply styling such as backgrounds, padding, or borders, or to nest and group other components. The contents of Box always maintain their natural size, making it especially useful within layout components that would otherwise stretch their children.

DividerDivider

Divider

Create clear visual separation between elements in your user interface.

GridGrid

Grid

Use s-grid to organize your content in a matrix of rows and columns and make responsive layouts for pages. Grid follows the same pattern as the CSS grid layout.

OrderedListOrderedList

OrderedList

Displays a numbered list of related items in a specific sequence. Use to present step-by-step instructions, ranked items, or procedures where order matters.

PagePage

Page

Use s-page as the main container for placing content in your app. Page comes with preset layouts and automatically adds spacing between elements.

QueryContainerQueryContainer

QueryContainer

Establishes a query container for responsive design. Use s-query-container to define an element as a containment context, enabling child components or styles to adapt based on the container’s size.

SectionSection

Section

Groups related content into clearly-defined thematic areas. Sections have contextual styling that automatically adapts based on nesting depth. They also adjust heading levels to maintain a meaningful and accessible page structure.

StackStack

Stack

Organizes elements horizontally or vertically along the block or inline axis. Use to structure layouts, group related components, or control spacing between elements.

TableTable

Table

Display data clearly in rows and columns, helping users view, analyze, and compare information. Automatically renders as a list on small screens and a table on large ones.

UnorderedListUnorderedList

UnorderedList

Displays a bulleted list of related items. Use to present collections of items or options where the sequence isn’t critical.