UNPKG

sharyn

Version:

Combines all the other packages under one.

36 lines (32 loc) 600 B
// @flow /* eslint-disable import/no-extraneous-dependencies */ import React from 'react' const StoryHost = ({ border, width, children, }: { border?: boolean, width?: number | string, children: any, }) => ( <div style={{ display: 'flex', height: '100%', justifyContent: 'center', alignItems: 'center', }} > {border || width ? ( <div style={{ ...(border ? { border: '1px dashed #bbb' } : {}), ...(width ? { width } : {}) }} > {children} </div> ) : ( children )} </div> ) export default StoryHost