IImage
A component that is used to embed an image not from the assets folder into a modal window or the settings page.
Examples
Plugin logo with fixed dimensions and spacing
const pluginLogo: IImage = {
src: "https://example.com/plugin-logo.png",
alt: "Plugin Logo",
width: "120px",
height: "40px",
name: "plugin-logo",
id: "settings-logo",
style: {
objectFit: "contain",
marginBottom: "16px"
}
}
Responsive document preview with modern styling
const documentPreview: IImage = {
src: "https://example.com/document-preview.jpg",
alt: "Document Preview",
width: "100%",
height: "auto",
name: "doc-preview",
style: {
borderRadius: "4px",
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)",
maxWidth: "800px"
}
}