UNPKG

@activecollab/components

Version:

ActiveCollab Components

18 lines 733 B
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 = _ref.children, _ref$type = _ref.type, type = _ref$type === void 0 ? "button" : _ref$type, 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