Base ยท SAHI Design System

Components ยท Shared

Asset

Universal media renderer โ€” auto-detects images vs videos.

๐Ÿ–ผ image โ†’ <Image>
๐ŸŽž video โ†’ <video>

Props

PropTypeDefaultDescription
srcstringโ€”Media URL.
altstringโ€”Alt text (images).
typeauto | image | videoautoForce a renderer or auto-detect.
prioritybooleanfalseEager-load for above-the-fold media.

Reference API for the design concept — align names and types with your implementation.

Guidelines

  • Use in the active theme; the component adapts to light and dark automatically.
  • Keep the purple accent for interactive states only โ€” never as a fill or background.
  • Copy the markup from the Code tab and wire it to base.css tokens.