ItemGroup

ItemGroup displays a list of Items grouped and styled together.

import { __experimentalItemGroup as ItemGroup } from '@wordpress/components';

View on Storybook

View in Figma

View source on GitHub

PropsPermalink to this section

NameDefaultDescription
isBorderedfalse

boolean

Renders a border around the itemgroup.

isRoundedtrue

boolean

Renders with rounded corners.

isSeparatedfalse

boolean

Renders a separator between each item.

size'medium'

"small" | "medium" | "large"

Determines the amount of padding within the component.

children Required

ReactNode

The children elements.

as

keyof IntrinsicElements | JSXElementConstructor<any> | undefined

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 } />
);