open-index/open-npm huggingface dataset:
npm package: @inki/storybook-addon-theme
Description: storybook addon that provides a configurable theme selector
Latest version: 1.0.1

# Storybook theme addon

## Notice
Only support storybook 5.x and newer.

## Installation
```bash
npm i @inki/storybook-addon-theme --dev
```

### Add to .storybook/addons.js 

```javascript
import '@inki/storybook-addon-theme/register';
```

## Usage

**.storybook/config.js**
```javascript

import { addParameters } from '@storybook/vue';

const themes = [
    {
      label: "Chalk",
      value: 'chalk'
    },
    {
      label: "Dark",
      value: "dark"
    }
];

addParameters({ 
  themes: {
    items: themes,
    // optional: set the initial active theme
    active: themes[0].value,
    // optional: set the icon used in the toolbar
    icon: 'document'
  }
});

```