Skip to main content

Logo: React

A wrapper component around the CDN-hosted logos for each brand.

Installation

Before you can start using the @mediahuis/chameleon-react component, you’ll need to install it, for more information check: Getting started for developers.

With that done, you’re now ready to implement the component in your application.

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

export default function Example() {
return <Logo />;
}

Properties

PropertyTypeDefaultRequiredDescription
altString-NoSets the native image alt attribute.
classNameString-NoAllows extending the class names of the Logo component.
extension'png' | 'svg''svg'NoThe file extension of the image.
nameString'logo-main'NoControls which logo is displayed. You can access Logo variations by using "variations.VARIATION_NAME".
versionStringpackageVersionNoControls which version of the logo is displayed. This conforms to any version number of chameleon as specified in package.json of the theme.