Skip to content

ImagePreview

An image centered on a checkerboard so transparency shows, scaled to fit the pane; clicking toggles its actual size. A load failure is shown, not hidden.

Source

import { ImagePreview } from "@flanksource/clicky-ui/data";

No dedicated Storybook demo is available for this component yet.

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
alt string — Accessible name, and the name in the load-error message; defaults to `src`.
className string — —
src* string — URL that serves the image bytes.