docs/components/display/ImagePreview

ImagePreview

Image with zoom and overlay.

import { ImagePreview } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
images *ImagePreviewItem[]Array of images to preview.
onRemove(id: string) => voidCallback when remove button is clicked.
maxVisiblenumberMaximum number of images to display.
classstringAdditional CSS classes.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-bg-primary
  • --sk-bg-secondary
  • --sk-bg-tertiary
  • --sk-border-default
  • --sk-border-muted
  • --sk-border-strong
  • --sk-border-width
  • --sk-duration-fast
  • --sk-ease-default
  • --sk-focus-ring
  • --sk-icon-lg
  • --sk-icon-sm
  • --sk-space-sm
  • --sk-space-xs
  • --sk-text-secondary