Contained Icon
Highlight specific content, topics, or sessions with a styled icon container to improve scannability
#Examples
The ContainedIcon component wraps the existing Icon component in a styled container. It uses the brand color palette by default.
#Default
Pass any icon as a child. The container uses the brand color palette — a light background with a dark foreground icon. Remember to only pass the specific icon component, for example IconSettings, and not the Icon wrapper. The Icon wrapper is added by ContainedIcon.
<ContainedIcon>
<IconSettings />
</ContainedIcon>#Properties
| Property | Description | Defined | Value |
|---|---|---|---|
childrenRequired | elementAn icon to display inside the styled container | ||
typeOptional | unknownControls the color palette of the container — defaults to "brand" | ||
data-observe-keyOptional | stringUnique string, used by external script e.g. for event tracking | ||
classNameOptional | stringCustom className that's applied to the outermost element (only intended for special cases) | ||
styleOptional | objectStyle object to apply custom inline styles (only intended for special cases) |