14 lines
267 B
TypeScript
14 lines
267 B
TypeScript
import { Widget } from 'astal';
|
|
|
|
|
|
export default ({
|
|
size,
|
|
vertical = false,
|
|
css = '',
|
|
...rest
|
|
}: { size: number } & Widget.BoxProps) => (
|
|
<box
|
|
css={`${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css}`}
|
|
{...rest}
|
|
/>
|
|
);
|