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

14 lines
242 B
TypeScript
Raw Normal View History

const { Box } = Widget;
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,
});
};