nixos-configs/modules/ags/config/ts/misc/separator.ts

14 lines
284 B
TypeScript
Raw Normal View History

import { Box } from 'resource:///com/github/Aylur/ags/widget.js';
2024-01-13 11:15:08 -05:00
export default (size: number, {
vertical = false,
css = '',
...props
} = {}) => {
return Box({
css: `${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css}`,
...props,
});
};