@storybook/preset-ant-design
Ant Design preset for Storybook
Last updated a year ago by shilman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @storybook/preset-ant-design 
SYNC missed versions from official npm registry.

Ant Design preset for Storybook

One-line Ant Design configuration for Storybook.

Basic usage

yarn add -D @storybook/preset-ant-design

Then add the following to .storybook/presets.js:

module.exports = ["@storybook/preset-ant-design"];

Advanced usage

You can customize theme variable by passing modifyVars options into less loader in.storybook/presets.js, e.g.:

module.exports = [
  {
    name: '@storybook/preset-ant-design',
    options: {
      lessOptions: {
        modifyVars: {
          'primary-color': '#1DA57A',
          'border-radius-base': '2px',
        }
      }
    }
  }
]

Current Tags

  • 0.0.1                                ...           latest (a year ago)

1 Versions

  • 0.0.1                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 1
Last Month 16
Dependencies (5)
Dev Dependencies (10)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |