2023-10-31 08:32:40 -04:00
|
|
|
import { Box } from 'resource:///com/github/Aylur/ags/widget.js';
|
2023-10-02 12:06:35 -04:00
|
|
|
|
|
|
|
|
2023-11-21 01:29:46 -05:00
|
|
|
export default (size, {
|
|
|
|
vertical = false,
|
|
|
|
css = '',
|
|
|
|
...props
|
|
|
|
} = {}) => {
|
|
|
|
return Box({
|
|
|
|
css: `${vertical ? 'min-height' : 'min-width'}: ${size}px; ${css}`,
|
|
|
|
...props,
|
|
|
|
});
|
2023-10-20 23:11:21 -04:00
|
|
|
};
|