@muban/storybook
Version:
Storybook for Muban: View and Test Muban components.
13 lines (12 loc) • 586 B
JavaScript
/* eslint-disable prefer-destructuring,unicorn/filename-case,camelcase */
import { start } from '@storybook/preview-api';
import { renderToCanvas, render } from './render.js';
// eslint-disable-next-line @typescript-eslint/naming-convention
const RENDERER = 'html';
const api = start(renderToCanvas, { render });
export const storiesOf = (kind, m) => api.clientApi.storiesOf(kind, m).addParameters({
renderer: RENDERER,
});
export const configure = (...args) => api.configure(RENDERER, ...args);
export const forceReRender = api.forceReRender;
export const raw = api.clientApi.raw;