13 lines
242 B
TypeScript
13 lines
242 B
TypeScript
const { Box } = Widget;
|
|
|
|
|
|
export default (size: number, {
|
|
vertical = false,
|
|
css = '',
|
|
...props
|
|
} = {}) => {
|
|
return Box({
|
|
css: `${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css}`,
|
|
...props,
|
|
});
|
|
};
|