@toptal/davinci-storybook-full-text-search-addon

2.0.1 • Public • Published

Storybook Addon Full Text Search

Storybook Addon Full Text Search allows users to search any static text to find related story or component

Installation

1. Install addon

yarn add -D @toptal/davinci-storybook-full-text-search-addon

2. Register this addon to Storybook

// .storybook/main.js

module.exports = {
  addons: ['@toptal/davinci-storybook-full-text-search-addon'],
}

This full-text-search addon also uses Picasso and brings @toptal/picasso.

How it works

For UI, addon inserts a Full Text Search button into sidebar and a modal component to show the search input and results.

For computation and searching, addon will generate an index file with respect to stories inside the project and use this index file to search the text for all text content inside a story file

Package Sidebar

Install

npm i @toptal/davinci-storybook-full-text-search-addon

Weekly Downloads

1,004

Version

2.0.1

License

SEE LICENSE IN LICENSE.MD

Unpacked Size

6.79 kB

Total Files

5

Last publish

Collaborators

  • talbot