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

Image (deprecated) (code)

Images are simple wrappers around the img tags, but provide built in styling options

Deprecated: <Image /> has been deprecated. Please use the native HTML <img /> instead. (this component does not really have any added value)

import { Image } from '@mediahuis/chameleon-react'
ReferenceError: Image is not defined

Props

BorderRadius

default: undefined

Change the image's border-radius.

ReferenceError: Image is not defined

Height

default: undefined

Change the image's height.

ReferenceError: Image is not defined

MaxHeight

default: undefined

Change the image's max-height.

ReferenceError: Image is not defined

MaxWidth

default: full

You can change the image's max-width. By default it's set to 100%.

ReferenceError: Image is not defined

Width

default: auto

You can change the image's width. By default it's set to auto.

ReferenceError: Image is not defined

© Copyright 2020 Mediahuis NV. All rights Reserved