13 lines
273 B
TypeScript
13 lines
273 B
TypeScript
|
import { Box, BoxProps } from '../subclasses';
|
||
|
|
||
|
|
||
|
export default ({
|
||
|
size,
|
||
|
vertical = false,
|
||
|
css = '',
|
||
|
...rest
|
||
|
}: { size: number } & BoxProps) => Box({
|
||
|
css: `* { ${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css} }`,
|
||
|
...rest,
|
||
|
} as BoxProps);
|