Skip to content

teambit/custom-preview-example

Repository files navigation

Images preview

This project showcases an aspect (bit extension) that presents all the images in a component.

screenshot

What's included

It does 3 things:

  1. Add a tab in the component page with an iframe to the preview. (component-images.ui.runtime.tsx)
  2. Render the images preview inside the iframe (component-images.preview.runtime.ts)
  3. Bundles the images as their own preview target. (component-images.main.runtime.ts). this also bundles the preview template (component-images-app.tsx)

setup

  • bit install
  • bit compile
  • make sure there are no errors using bit status
  • bit start (add --dev when editing the custom extension)

About

a workspace showcasing a custom preview aspect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published