Внимание! Это очень ранний релиз. Рекомендуем импользовать его с осторожностью.
UI-кит для внутренних продуктов Самоката.
- Ставь зависимость из npm
yarn add @samokat/operations-ui
- Включай в бандл css-файл
import '@samokat/operations-ui/dist/styles.css'
- Добавь RobotoMono шрифт
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700&display=swap" rel="stylesheet">
- Используй компоненты
import { Typography } from '@samokat/opearations-io'
const { Text } = Typography
//...
const App = () => {
return (
<Text>Здравствуй, UI-кит!</Text>
)
}
//...
- Восхитительно!
- Make your changes and commit it
- Run
yarn s release
- Run
git push --follow-tags
- Travis will publish it to NPM
- Brilliant!