UNPKG

@reactui-org/core

Version:

the future of design systems, build beautiful websites with utility first customizable components

13 lines 469 B
import React from "react"; const Button = (props) => { const { children, backgroundColor, color, style } = props; let _style = style || {}; // Override defaults if (backgroundColor && _style) _style.backgroundColor = backgroundColor; if (color && _style) _style.color = color; return (React.createElement("button", Object.assign({ style: _style }, props), children)); }; export default Button; //# sourceMappingURL=index.js.map