Skip to main content
Pass the main icon through the icon node slot and the stacked item through stackedIcon. The container is 16px wide and tall; the stacked item is positioned absolutely at 8px from the left and 7px from the top so it overflows the bottom-right corner. A 12px square avatar is the intended size for an application logo. Both nodes are decorative, so keep a visible label beside the icon.
Native attributes, events, className, style, and ref target the outer div. render replaces that target through Base UI composition while preserving both icon nodes.

Props

string
CSS class applied to the container root.
ReactNode
required
Main icon content. The caller controls its dimensions and stroke.
ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>
Replaces the div root while preserving the icon content and native props.
ReactNode
required
Smaller content stacked on the bottom-right corner of the main icon, such as a 12px avatar.
CSSProperties
Inline styles applied to the container root.