Storybook Addon Full Text Search
allows users to search any static text to find related story or component
yarn add -D @toptal/davinci-storybook-full-text-search-addon
// .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
.
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