Wrapper

This is a compound component.

API

This component extends the native <div> API. That's why the className prop is not included in the table.

Props
Type
Required

children

ReactNode

variant

'subtle' | 'contrast'

icon

image

string

children

The children in this case, because it is a compound component, should be the ones provided by this design system.

variant

Controls some styles of the component.

icon

An icon rendered in the header.

image

An image rendered in the header.

You can't use both icon and image props at the same time.

Last updated