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

Icon (code)

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

import { Add } from '@mediahuis/chameleon-theme-wl/icons'
import { Icon } from '@mediahuis/chameleon-react'

Props

As

default: undefined

Provide an svgr icon to the Icon component, please choose one of our pre-defined iconset.

import { Add, Brand, Shield } from '@mediahuis/chameleon-theme-wl/icons'
import { Icon } from '@mediahuis/chameleon-react'

As

default: undefined

Provide the icon component you want to use.

import { Add, Brand, Shield } from '@mediahuis/chameleon-theme-wl/icons'
import { Icon } from '@mediahuis/chameleon-react'

Size

default: medium

All icons are available in sets of four different sizes, where the default size is Medium.

  • Small
  • Medium
  • Large
  • xLarge
import { Brand } from '@mediahuis/chameleon-theme-wl/icons'
import { Icon } from '@mediahuis/chameleon-react'

I just need SVG files, not React components.

Good for you! We also supply these icons as SVG files, you can find them in each theme package under lib/web/icons.

Looking for icons?

© Copyright 2020 Mediahuis NV. All rights Reserved