Skip to content

Commit d487004

Browse files
committed
feat(docs): register FullWidthImage component for lightbox support
FullWidthImage is now available in all MDX pages. Usage: <FullWidthImage src="..." alt="..." caption="..." /> Clicking any image opens a lightbox overlay. CSS already in custom.css.
1 parent 2a21ef8 commit d487004

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/src/theme/MDXComponents.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React from 'react';
22
import MDXComponents from '@theme-original/MDXComponents';
33
import Carbon from '@site/src/components/Carbon';
4+
import FullWidthImage from '@site/src/components/FullWidthImage';
45

56
export default {
67
...MDXComponents,
78
Carbon,
9+
FullWidthImage,
810
};

0 commit comments

Comments
 (0)