UNPKG

nice-ui

Version:

React design system, components, and utilities

18 lines (17 loc) 478 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Space = void 0; const React = require("react"); const Space = ({ size = 0, horizontal }) => { const style = {}; if (horizontal) { style.display = 'inline-block'; style.width = 12 + size * 4; } else { style.display = 'block'; style.height = 12 + size * 4; } return React.createElement("span", { style: style }); }; exports.Space = Space;