Implement a lightbox component that uses cosmoz-slider to browse between some viewable items.
The lightbox should be a web component that when attached to the DOM already presents the items in the modal and does not handle the opened state itself.
The component should receive as props:
- items: an array of items
- selected: which items is selected
- close: a event handler when clicking on its close button/icon
Different types of items must be support and the component needs to discriminate between them and render them differently.
We could show image, video, pdf, iframe embed etc ....
Adding support for different Viewable types should be allowed.
The repository should have a structure similar to https://github.com/Neovici/cosmoz-slider.
Must have storybooks and full unit test coverage.
Implement a lightbox component that uses cosmoz-slider to browse between some
viewableitems.The lightbox should be a web component that when attached to the DOM already presents the items in the modal and does not handle the opened state itself.
The component should receive as props:
Different types of items must be support and the component needs to discriminate between them and render them differently.
We could show image, video, pdf, iframe embed etc ....
Adding support for different Viewable types should be allowed.
The repository should have a structure similar to https://github.com/Neovici/cosmoz-slider.
Must have storybooks and full unit test coverage.