Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
Kube Design is a set of React component libraries created for KubeSphere console.
There are two ways to import style files.
The css file can be imported directly, so no additional configuration is required in the webpack configuration file.
If you import the scss file, you may need to compile this part of the scss file in the webpack configuration file.
webpack.config.js
You can use babel-plugin-import to load the component library on demand.
When loading on demand, styles will also be imported on demand. You don't need to import all styles, only
main.scss
.
Configure the babel as follows:
Import the main.scss
instead of index.scss
Kube Design use LocaleProvider
component to support localization.
The locale
method can be assigned to window
for easy use.
locale.get('key')
to get the language text