Media card

Inline preview for image, video or file attached to chat message.

Images, avatars, file input, maps and QR codes.

lr-media-card

import '@aceshooting/lyra-ui/components/lr-media-card.js';

Read di guide (for English)

Components wey relate

  • Pan and zoom — Scrollable view to move and zoom slotted content or one image within limits.
  • Sequence playback — Play/pause control wey move index through range on fixed timer.
  • QR code — E encode any value as QR symbol wey person fit scan, drawn on canvas.
  • Video player — Inline player with custom controls, captions wey person fit choose and thumbnail previews.
  • Video playlist — Videos inside navigable list; next one play automatically when current one finish.
  • Zoomable frame — Sandboxed iframe preview with step-by-step zoom controls; lr-pan-zoom handle old image surface.