---
title: Section
description: >-
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.
api_version: 2025-10
api_name: admin-extensions
source_url:
html: >-
https://shopify.dev/docs/api/admin-extensions/latest/polaris-web-components/structure/section
md: >-
https://shopify.dev/docs/api/admin-extensions/latest/polaris-web-components/structure/section.md
---
# 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.
## Properties
* accessibilityLabel
string
A label used to describe the section that will be announced by assistive technologies.
When no `heading` property is provided or included as a children of the Section, you **must** provide an `accessibilityLabel` to describe the Section. This is important as it allows assistive technologies to provide the right context to users.
* heading
string
A title that describes the content of the section.
* padding
"base" | "none"
Default: 'base'
Adjust the padding of all edges.
* `base`: applies padding that is appropriate for the element. Note that it may result in no padding if this is the right design decision in a particular context.
* `none`: removes all padding from the element. This can be useful when elements inside the Section need to span to the edge of the Section. For example, a full-width image. In this case, rely on `s-box` with a padding of 'base' to bring back the desired padding for the rest of the content.
## Slots
* children
HTMLElement
The content of the Section.
### Examples
* #### Code
##### jsx
```jsx
View a summary of your online store’s performance.
```
##### html
```html
View a summary of your online store’s performance.
```
## Useful for
* Organizing your page in a logical structure based on nesting levels.
* Creating consistency across pages.
## Considerations
* When adding headings inside sections they automatically use a specific style, which helps keep the content organized and clear.
* Built-in spacing is added between nested sections, as well as between heading and content.
* **Level 1:** Display as responsive cards with background color, rounded corners, and shadow effects. Includes outer padding that can be removed when content like `s-table` needs to expand to the full width of the section.
* **Nested sections:** Don't have any background color or effects by default.
## Examples
Component examples
### Basic usage
### Examples
* #### Top-Level Section with Form Elements
##### Description
Demonstrates a level 1 section with a heading and multiple form fields. This example shows how sections provide visual hierarchy and structure for input elements.
##### jsx
```jsx
```
##### html
```html
```
* #### Nested Sections with Visual Level Differences
##### Description
Illustrates how sections can be nested to create a hierarchical layout, with each nested section automatically adjusting its visual style. This example demonstrates the automatic visual leveling of nested sections.
##### jsx
```jsx
{/* Level 1 section */}
Order #1234 placed on January 15, 2024
{/* Level 2 section - nested with different visual treatment */}
{/* Level 3 section - further nested */}
{/* Another Level 2 section */}
2 items totaling $49.99
```
##### html
```html
Order #1234 placed on January 15, 2024
2 items totaling $49.99
```
* #### Section with Accessibility Label
##### Description
Shows how to add an accessibility label to a section, providing an additional hidden heading for screen readers while maintaining a visible heading.
##### jsx
```jsx
Subtotal: $42.99
Tax: $5.59
Shipping: $1.41
Total: $49.99
```
##### html
```html
Subtotal: $42.99
Tax: $5.59
Shipping: $1.41
Total: $49.99
```
* #### Full-width Content Layout
##### Description
Demonstrates using a section with \`padding="none"\` to create a full-width layout, ideal for displaying tables or other content that requires edge-to-edge rendering.
##### jsx
```jsx
Product
Price
Status
Cotton t-shirt
$29.99
Active
```
##### html
```html
Product
Price
Status
Cotton t-shirt
$29.99
Active
```