nixos-configs/devices/wim/config/ags/ts/misc/separator.ts
matt1432 3e0b416a33
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(ags): switch to TypeScript
2024-01-13 11:15:08 -05:00

13 lines
284 B
TypeScript

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