Panel
Overview
Panel allows group content within a page. Content and actions on a page that are not in the header should be contained in a panel.
When to use:
- Use seperate
Panelsto group related content or tasks on a page.
Implementation
Edit the code below to see your changes live!
Props
Prop name | Type | Default | Description |
|---|---|---|---|
header | string | | Defines the |
headerId | string | | Gives the header a HTML |
action | ButtonProps & { text: string } | | Defines the |
badge | BadgeProps | | See Badge for usage. |
description | string | React.ReactNode | | Appends a description below the header and action. |
Props ending with * are required
Inherited
Margin Props
Do's and Don'ts
Do |
|---|
Panel should use headings that set clear expectations about the content inside. |
Panel should prioritize information so the most important content comes first. |
Don't |
|---|
Panel should avoid too many call-to-action buttons or links and have only one primary call to action. |