Skip to main content

Logo: React

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

Installation

Before you can start using the @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 '@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.
extensionCdnExtension'svg'NoThe file extension of the logo.
nameString'logo-main'NoControls which logo is displayed.

name

The name property controls which logo is displayed. Defaults to 'logo-main'. You can access logo variations using their names (e.g., 'logo-square-main', 'logo-plus-main').

extension

The extension property controls the file format of the loaded asset. Defaults to 'svg'. You can also use 'png'.

alt

The alt property sets the image alt text for accessibility. Since logos render as <img> elements, provide a meaningful alt description or an empty string for decorative images.