Skip to content
PropertyTypeDescription
svgReact.Component
React.Element
Function
(optional) Provide a custom SVG to render instead of the built-in logos. Accepts a React SVG component, element, or a function that receives the theme and returns a SVG component. Width, height and color props still apply. If not provided, defaults to DNB logo. Import SVGs from @dnb/eufemia/components/Logo (e.g., DnbDefault, SbankenDefault, SbankenCompact, SbankenHorizontal, CarnegieDefault, EiendomDefault). When using a function, it receives the theme context (useTheme return value) allowing theme-aware logo selection.
colorstring(optional) Define the color of the logo.
inheritColorboolean(optional) Set to true if you do not want to inherit the color by currentColor. Defaults to false.
inheritSizeboolean(optional) Set to true if you want to inherit the size of the parent. Defaults to false.
widthstring(optional) Define the width of the logo.
heightstring(optional) Define the height of the logo.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.