Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

Image

Image renders editorial MDX images with caption, dark-mode source, fallback source, and click-to-open modal behavior.

MDX@gaudi/design-system/mdx/ImageView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import Image from '@gaudi/design-system/mdx/Image';

Usage

<Image  src='/static/images/art/0.svg'  fallback='/static/images/art/1.svg'  darkSrc='/static/images/art/5.svg'  alt='Lavender gradient artwork'  caption='A study in lavender and light.'  width={420}  height={236}/>

Examples

Playground

Storybook

Fallback

Storybook

API

10 props

Accessibility

Image keeps article images semantic with alt text, figure captions, and a button trigger for the modal preview.