0.0.8 • Published 4 years ago
bt-dm-templates v0.0.8
:beers: digital menu templates :beers:
how to install:
npm install --save bt-dm-templates
motivation for isolating templates:
- centralize template code
- easier addition of future templates
- make type-safe
- storybook previews
- provision for visual testing
how to use:
<Template config={config} item={item} height={height} fontSize={fontSize} draftContainers={draftContainers} />
props
config {object} ▶︎ menu_design.metadata
\
required\
Contains settings pertaining to individual menu screen.
item {object} ▶ item
\
required\
An item stored in the database.
draftContainers {array} ▶ [container.Draft, ...]
\
required\
List of draft containers for an establishment.
height {string} ▶ "8vw"
\
required\
Height of tile in vw
.
fontSize {string} ▶ "1.7vw"
\
required\
Base font size in vw
.