@gechiui/components
Version:
UI components for GeChiUI.
17 lines • 598 B
TypeScript
/**
* A real number or something parsable as a number
*/
export declare type SpaceInput = number | string;
/**
* A function that handles numbers, numeric strings, and unit values.
*
* When given a number or a numeric string, it will return the grid-based
* value as a factor of GRID_BASE, defined above.
*
* When given a unit value or one of the named CSS values like `auto`,
* it will simply return the value back.
*
* @param value A number, numeric string, or a unit value.
*/
export declare function space(value?: SpaceInput): string | undefined;
//# sourceMappingURL=space.d.ts.map