Skip to content

Implement lightbox & preview component #1

Description

@megheaiulian

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.

Metadata

Metadata

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions