@rockshin/react-image-annotation
Version:
An image annotation tool for ai project that manual annotation for images, easy to use!
20 lines (19 loc) • 666 B
JavaScript
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
import "./button.css";
const Button = ({ primary = false, size = 'medium', backgroundColor, children, ...props })=>{
const mode = primary ? 'demo-button--primary' : 'demo-button--secondary';
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
type: "button",
className: [
'demo-button',
`demo-button--${size}`,
mode
].join(' '),
style: {
backgroundColor
},
...props,
children: children
});
};
export { Button };