@wezom/toolkit-css-in-js
Version:
Useful tools for working with CSS-in-JS
36 lines (35 loc) • 577 B
TypeScript
/**
* @example
* jssAbsoluteGap('10px');
* // returns
* {
* width: 'auto',
* height: 'auto',
* top: '10px',
* right: '10px',
* bottom: '10px',
* left: '10px'
* }
*
* jssAbsoluteGap('10px', '2em');
* // returns
* {
* width: 'auto',
* height: 'auto',
* top: '10px',
* right: '2em',
* bottom: '10px',
* left: '2em'
* }
*/
export declare function jssAbsoluteGap(
x: string,
y?: string
): {
width: 'auto';
height: 'auto';
top: string;
right: string;
bottom: string;
left: string;
};