Takeout UI
Common UI for Takeout
Installation
yarn add @takeout/ui
Usage
Config
import { config } from '@takeout/ui'
Utils
import { utils } from '@takeout/ui'
Bootstraping and styles
@import '~@takeout/ui/build/index.css';
@import '~@takeout/ui/build/scss/variables';
@import '~@takeout/ui/build/scss/functions';
@import '~@takeout/ui/build/scss/mixins';
Components
import { Button } from '@takeout/ui'
Proptypes
import { propTypes } from '@takeout/ui'
Fixtures
import { fixtures } from '@takeout/ui'
Components
- Badge
- Bestseller
- Button
- Checkbox
- ConfirmModal
- Discount
- Dish
- DishType
- Icon
- IconBox
- Input
- Instruction
- Label
- Logo
- Map
- Modal
- Overlay
- Slide
- Textarea
- Toggle
- Upload
- ValidationError
- VisibilityToggle
Publish package to NPM
Update version in package.json
{
"version": "1.0.1"
}
Build the package
yarn build
Deploy to NPM registery
npm publish