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

Illustration (code)

Illustrations can be used to provide extra visual context for other items.

import { Illustration } from '@mediahuis/chameleon-react'

Props

NameTypeDefaultRequiredDescription
accessibilityLabelString--Accessible friendly label. Will not be shown
asFunctionNodeObject--Render with a different SVG component.
classNameString--Extend classNames.
heightString01234567891011'auto''full'--Enable height of the illustration to 100%, auto or free value.
maxHeightString01234567891011'auto''full'--Enable max-height of the illustration to 100%, auto or free value.
maxWidthString01234567891011'auto''full'--Enable max-width of the illustration to 100%, auto or free value.
widthString01234567891011'auto''full'--Sets the width of the illustration 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.

As

default: undefined

The illustration component to render, choose one of: Chameleon illustration search.

import { Illustration } from '@mediahuis/chameleon-react'

AccessibilityLabel

default: undefined

To meet accessibility standars, you should provide an accessibilityLabel. Describe what's displayed on the illustration.

import { Illustration } from '@mediahuis/chameleon-react'

Height

default: undefined

Change the illustration's height.

MaxHeight

default: undefined

Change the illustration's max-height.

MaxWidth

default: full

Change the illustration's max-width.

Width

default: auto

Change the illustration's width.

Looking for illustrations?

© Copyright 2020 Mediahuis NV. All rights Reserved