icon node slot. The tile derives its background and inherited foreground color from the theme palette. Icon content is decorative. Keep a visible label beside it, or give the root role="img" and an accessible name for a standalone labeled image.
Usage
Geometry and native composition
The tile defaults to 16px through the spacing token and uses the small border-radius token. Set icon dimensions and stroke on the node itself. Rootstyle or className controls tile width, height, border, shape, and colors; explicit styles override palette defaults. Custom artwork should inherit currentColor when it uses the palette foreground.
className, style, and ref target the outer div. render replaces that target through Base UI composition while preserving the decorative icon content. Name the surrounding control when composing a tile into an action.
Replace Icon={CompanyIcon} with icon={<CompanyIcon size={16} />}. Move the former size and stroke options to the icon node, and use root styles for custom tile dimensions.
Props
string
CSS class applied to the tile root.
string | null
default:"gray"
Theme palette name used to derive the background and foreground shades. Invalid names use the default theme color.
ReactNode
required
Decorative icon content. The caller controls its dimensions and stroke.
ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>
Replaces the div root while preserving icon content and native props.
CSSProperties
Inline styles override tile geometry and palette defaults.