@fcannizzaro/streamdeck-react

Image

A convenience component for rendering images with layout props.

Image renders an img element with required dimensions and optional styling.

Import

import { Image } from '@fcannizzaro/streamdeck-react';

Props

interface ImageProps {
  className?: string;
  src: string;
  width: number;
  height: number;
  fit?: 'contain' | 'cover';
  borderRadius?: number;
  style?: CSSProperties;
}
PropDescription
srcImage source: URL, base64 data URI, or Buffer
widthRequired width in pixels
heightRequired height in pixels
fitMaps to objectFit
borderRadiusBorder radius in pixels

Example

<Image
  src="data:image/png;base64,..."
  width={48}
  height={48}
  fit="contain"
/>

Notes

  • Provide explicit width and height for all img elements.
  • Remote URLs work if the plugin runtime can fetch them during rendering.

On this page