ItemGroup displays a list of Items grouped and styled together.
import { __experimentalItemGroup as ItemGroup } from '@wordpress/components';
LinksPermalink to this section
PropsPermalink to this section
| Name | Default | Description |
|---|---|---|
isBordered | false |
Renders a border around the itemgroup. |
isRounded | true |
Renders with rounded corners. |
isSeparated | false |
Renders a separator between each item. |
size | 'medium' |
Determines the amount of padding within the component. |
children Required |
The children elements. | |
as |
The HTML element or React component to render the component as. |
ExamplesPermalink to this section
DefaultPermalink to this section
const Default = ( props ) => (
<ItemGroup { ...props } />
);
Non Clickable ItemsPermalink to this section
const NonClickableItems = ( props ) => (
<ItemGroup { ...props } />
);
Custom Item SizePermalink to this section
const CustomItemSize = ( props ) => (
<ItemGroup { ...props } />
);
Without BorderPermalink to this section
const WithoutBorder = ( props ) => (
<ItemGroup { ...props } />
);