Addons

Vitebook takes a much more relaxed approach to addons compared to Storybook. Like everything else you've seen, we try to encourage composition over configuration. The idea is that we leave the complexity at the framework level, and simply provide you the tools to quickly scaffold addons.

This comes with a few advantages in that:

  • You can customize the addons to suit your project's needs.
  • You're not limited to the addons we provide you.
  • You can use the same tools/knowledge you use to build components to build an addon.
  • You can achieve true two-way binding between your components and addons.

Custom Addon

Controls Addon

Events Addon

TIP

  • Clicking the event in the addon panel will log the event to your console for deeper inspection.
  • You can also import the throttledEventCallback and debouncedEventCallback functions for logging events.