21 lines
430 B
JavaScript
21 lines
430 B
JavaScript
import { Box } from 'resource:///com/github/Aylur/ags/widget.js';
|
|
|
|
|
|
/**
|
|
* @param {number} size
|
|
* @param {{
|
|
* vertical?: boolean
|
|
* css?: string
|
|
* props?: import('types/widgets/box').BoxProps
|
|
* }} o
|
|
*/
|
|
export default (size, {
|
|
vertical = false,
|
|
css = '',
|
|
...props
|
|
} = {}) => {
|
|
return Box({
|
|
css: `${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css}`,
|
|
...props,
|
|
});
|
|
};
|