4.1.0 • Published 3 years ago

@themeables/image v4.1.0

Weekly downloads
41
License
MIT
Repository
github
Last release
3 years ago

@themeables/image

What is a themeable? You can find more in the @themeables readme

Properties that the theme function for the @themeables/image should return:

type TThemeableImage = {
  resizeMode?: 'contain' | 'cover',
}

On top of that, the themeable image component receives these props:

type TImage = {
  id?: string,
  alt?: string,
  source: string,
  height: number,
  width: number,
  topLeftRadius?: number,
  topRightRadius?: number,
  bottomRightRadius?: number,
  bottomLeftRadius?: number,
  resizeMode?: 'contain' | 'cover',
  onLoad?: () => void,
  onError?: () => void,
}

You can see a full example usage in the meta file

4.1.0

3 years ago

4.0.1

3 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago