-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
67 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
ui/stories/5. Components/Image Gallery/ImageGallery.stories.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
.../6. Web Components Or Custom Elements/WebUI Image Gallery/WebUIImageGallery.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Meta, Canvas } from '@storybook/blocks'; | ||
import * as WebUIImageGallery from './WebUIImageGallery.stories'; | ||
|
||
<Meta of={WebUIImageGallery} /> | ||
|
||
# `<webui-image-gallery>` | ||
- Uses a simple [grid list layout](/story/layout-grid--grid-list) to arrange the image thumbnails. | ||
- Without JavaScript, clicking thumbnails opens the large images in current browser window. | ||
- With JavaScript, the large images are shown in the [`<webui-modal>`](/docs/web-components-or-custom-elements-webui-modal--docs) custom element. | ||
|
||
> Please note: For brevity, the large images only have a subset of [responsive image](/story/components-images--responsive-image) `<source>` markup. | ||
## TODO | ||
- Consider extending `<webui-modal>` custom element to enable a single modal instance to be opened by multiple triggers? | ||
- Consider showing the large images in a carousel? | ||
|
||
<Canvas of={WebUIImageGallery.WebUIImageGallery} /> |
15 changes: 15 additions & 0 deletions
15
...ies/6. Web Components Or Custom Elements/WebUI Image Gallery/WebUIImageGallery.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { WebUIImageGalleryHtml } from './WebUIImageGallery'; | ||
|
||
export default { | ||
title: 'Web Components Or Custom Elements/<webui-image-gallery>', | ||
parameters: { | ||
status: { | ||
type: 'stable', | ||
}, | ||
}, | ||
}; | ||
|
||
export const WebUIImageGallery = { | ||
render: () => WebUIImageGalleryHtml(), | ||
}; | ||
WebUIImageGallery.storyName = '<webui-image-gallery'; |