13 lines
276 B
JavaScript
13 lines
276 B
JavaScript
import { Box } from 'resource:///com/github/Aylur/ags/widget.js';
|
|
|
|
|
|
export default (size, {
|
|
vertical = false,
|
|
css = '',
|
|
...props
|
|
} = {}) => {
|
|
return Box({
|
|
css: `${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css}`,
|
|
...props,
|
|
});
|
|
};
|