@invisionag/iris-react-image-container

2.6.2 • Public • Published
import ImageContainer from '@invisionag/iris-react-image-container';

A component that contains an image.

Usage:

Default

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer>
    <svg /> // <- Some image
</ImageContainer>

scale (optional)

Sets the scale of the contained image. E.g. a scale of 2 will double it's size. The default size is set to settings.spacing.

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer scale={2}>
    ...
</ImageContainer>

color (optional)

Sets the color of the contained image. NOTE: this will NOT override colors set directly on the image.

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer color={'red'}>
    ...
</ImageContainer>

fillShape (optional)

Fills the inner shapes of the icon with white.

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer fillShape>
    ...
</ImageContainer>

Readme

Keywords

none

Package Sidebar

Install

npm i @invisionag/iris-react-image-container

Weekly Downloads

36

Version

2.6.2

License

MIT

Unpacked Size

9.26 kB

Total Files

5

Last publish

Collaborators

  • jj-ivx
  • ivx-github
  • jana_hehr
  • roberter26
  • birgithorn
  • alexj-ivx
  • amft
  • aitortomas
  • yashabfaryal0322
  • nleinich
  • johannesluedke
  • pgotthardt-ivx
  • hrabe
  • plore_ivx
  • patricialieske
  • plaudel
  • mblumtritt
  • sruehlemann
  • brerx
  • mohamedmmahfouz
  • mbrendler
  • jens.zobel
  • cwaider
  • kattelans
  • ftrautmann
  • lutz.peukert
  • fruetel
  • schmitze333
  • csprle
  • beckerei
  • stefan.schiffer
  • ahx
  • cloudwaechter
  • tobias
  • alexmarold
  • t_klepzig
  • susahope
  • mwannewitz
  • ivx-circle-ci
  • yichang
  • ivx-jenkins