0.2.0 • Published 2 years ago

storybook-addon-poleaxe v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Idea

Inspired by HTML-tree

Provides:

  • 👁 highlighting for Headings on the page, helping to understand their placement
  • 🌳 tree view of a page structure, creating a capability to "see" your page as a glossary

Installation

// .storybook/main.js
module.exports = {
addons: [require.resolve('storybook-addon-poleaxe/preset')],
};

Configuration

You can enable or disable highlighting by default for a specific story via story parameters

HighlightedByDefault.parameters = {
  poleaxe: {
    highlighter: true,
  }
}

You can also control the behavior of MutationObserver

StaticStory.parameters = {
  poleaxe: {
    mutationObserver: true | false, // enabled of disabled for all
    mutationObserver: 'highlighter' | 'panel', // enabled only for some pieces
  }
}

See also

License

MIT

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.0-beta

2 years ago