nixos-configs/modules/ags/config/widgets/misc/separator.tsx

15 lines
272 B
TypeScript
Raw Permalink Normal View History

import { Widget } from 'astal/gtk3';
2024-09-26 23:55:06 -04:00
export default ({
size,
vertical = false,
css = '',
...rest
}: { size: number } & Widget.BoxProps) => (
<box
css={`${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css}`}
{...rest}
/>
);