This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See: https://docs.mapbox.com/help/glossary/style/ | |
export const MAP_STYLES = [ | |
// Vector styles | |
{ | |
label: 'MapBox Light', | |
value: 'mapbox://styles/mapbox/light-v10', | |
}, | |
{ | |
label: 'MapBox Dark', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://www.npmjs.com/package/postcss-nested */ | |
.button { | |
&_theme_primary { | |
color: var(--color-text-active); | |
background-color: var(--color-bg-brand); | |
&:focus, | |
&:hover { | |
background-color: var(--color-bg-brand-hover); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
export const getLazyComponent = (componentImport) => { | |
const LazyComponent = React.lazy(componentImport) | |
return () => ( | |
<LazyComponentErrorBoundary> | |
<React.Suspense fallback={'Loading...'}> | |
<LazyComponent /> | |
</React.Suspense> |
- react-docgen-typescript-loader для генерации документации
- addon-smart-knobs для автогенерации нобов
- Отображение документации по просам:
- storybook-addon-react-docgen — на табе Props
- @storybook/addon-info — под компонентом или в попапе
- @storybook/addon-docs — на вкладке Docs
- Лоадер