You are currently viewing outdated (<=3.x) Chameleon documentation on our old website. For version >=4.x, check out our new website.

Current release: 3.5.0 | hub

components

Logo (code)

This is a wrapper component around the CDN-hosted logos for each brand. This way you don't have to worry about versions, CDN urls, etc.

HUB
import { Logo } from '@mediahuis/chameleon-react'

Extension resolving

The correct functioning of this component relies on extension resolving. In our documentation website, we don't work with extension resolving (as we dinamically load in every theme) and as such the preview of this component will always display Whitelabel's logos.

Props

NameTypeDefaultRequiredDescription
altString--Extend native image alt. Should be the company’s name. The word “logo” is not necessary or useful as part of the alternative text.
classNameString--Extend classNames.
extension'png''svg''svg'-The extension of the image.
heightString01234567891011'auto''full''auto'-Enable height of the image to 100%, auto or free value.
maxHeightString01234567891011'auto''full'--Enable max-height of the image to 100%, auto or free value.
maxWidthString01234567891011'auto''full''full'-Enable max-width of the image to 100%, auto or free value.
nameString--Controls which logo is displayed. You can access Logo variations by using "variations.VARIATION_NAME"
verticalAlign'baseline''bottom''inherit''initial''middle''sub''super''text-bottom''text-top''top''unset''middle'-Sets the vertical alignment of the imge
widthString01234567891011'auto''full''auto'-Sets the width of the image to 100%, auto or free value.

System Props

System Props

Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.

To read more about the system, click here to check out its dedicated page.

Name

default: brand-main

This is the name of the logo, as can be found on the logos page.

HUBHUBPlus Artikel

Extension

default: svg

Use logo as svg or png, try to use svg as much as possible.

HUBHUB

Height

default: undefined

Change the logo's height.

HUBHUBHUBHUB

MaxHeight

default: undefined

Change the logo's max-height.

HUBHUBHUBHUB

MaxWidth

default: full

Change the logo's max-width.

HUBHUBHUBHUB

Width

default: auto

Change the logo's width.

HUBHUBHUBHUB

VerticalAlign

default: middle

Vertical align the logo against text.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. HUB Morbi eget tortor volutpat orci fermentum gravida. HUB Morbi sodales lacus id nibh posuere, in dapibus erat ornare. Maecenas scelerisque facilisis luctus. HUB Nam at purus eu orci accumsan scelerisque. HUB Morbi molestie aliquet consectetur. HUB Phasellus ac felis rhoncus, tristique enim non, congue ex. HUB Curabitur non enim nisl. HUB Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. HUB Lorem ipsum dolor sit amet, consectetur adipiscing elit. HUB Morbi eget tortor volutpat orci fermentum gravida. HUB Morbi sodales lacus id nibh posuere, in dapibus erat ornare. Maecenas scelerisque facilisis luctus. HUB

© Copyright 2020 Mediahuis NV. All rights Reserved