@activecollab/components
Version:
ActiveCollab Components
19 lines • 678 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["children", "type"];
import React, { forwardRef } from "react";
import { StyledButton } from "./Styles";
export const Trigger = /*#__PURE__*/forwardRef((_ref, ref) => {
let {
children,
type = "button"
} = _ref,
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
return /*#__PURE__*/React.createElement(StyledButton, _extends({
ref: ref,
role: "button",
type: type
}, rest), children);
});
Trigger.displayName = "Trigger";
//# sourceMappingURL=Trigger.js.map