Storybook: Action add-on position

Created on 12 Feb 2020  路  3Comments  路  Source: storybookjs/storybook

Is your feature request related to a problem? Please describe.
I am building a mini-component that uses Intersection Observer API. The action-addon is 'breaking' the functionality of the demo, as it's covering the bottom of the screen, so the Observer callback doesn't fire when an element is in the viewport. I still want to use that addon, but I wish there was a config option to move the addon to the right instead of the bottom.

Describe the solution you'd like
I want to use the current functionality that changes the addon position and extend it, so when setting up Storybook I can pass the correct config option.

Are you able to assist bring the feature to reality?
Yes, I am happy to work on this.

question / support ui

Most helpful comment

Try adding the following to manager.js:

import { addons } from '@storybook/addons';

addons.setConfig({
  panelPosition: 'right',
  theme,
});

All 3 comments

Try adding the following to manager.js:

import { addons } from '@storybook/addons';

addons.setConfig({
  panelPosition: 'right',
  theme,
});

@shilman thanks for that 馃槃 is it anywhere in the Docs? I couldn't find it. Also, where that manager file should go?

Nevermind, found it all :) Thanks again for help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moimikey picture moimikey  路  67Comments

ilyaulyanov picture ilyaulyanov  路  100Comments

joeruello picture joeruello  路  79Comments

firaskrichi picture firaskrichi  路  61Comments

maraisr picture maraisr  路  119Comments