nixos-configs/devices/wim/config/ags/js/misc/separator.js

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,
});
};