@themeables/image
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @themeables/image

Weekly Downloads

2

Version

4.1.0

License

MIT

Unpacked Size

5.33 kB

Total Files

9

Last publish

Collaborators

  • julia.spehrer
  • ijigg
  • gideon.gur
  • irminakacz
  • atilaz
  • case.taintor
  • moria.am