How to use the @storybook/channels.default function in @storybook/channels

To help you get started, we’ve selected a few @storybook/channels examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gymnastjs / picturebook / config / config.js View on Github external
/* eslint-disable */

import { configure, setAddon } from '@storybook/react'
import { setOptions } from '@storybook/addon-options'
import JSXAddon from 'storybook-addon-jsx'
import params from '../params'

if (
  typeof window === 'object' &&
  window.navigator &&
  /node\.js/i.test(window.navigator.userAgent)
) {
  var addons = require('@storybook/addons').default
  var Channel = require('@storybook/channels').default
  addons.setChannel(
    new Channel({
      transport: {
        setHandler: function() {},
        send: function() {},
      },
    })
  )
}

setOptions({
  downPanelInRight: true,
  hierarchySeparator: /\./,
  name: params.projectName,
  url: params.projectUrl,
})

setAddon(JSXAddon)

@storybook/channels

MIT
Latest version published 2 days ago

Package Health Score

95 / 100
Full package analysis