UNPKG

@trellixio/roaster-coffee

Version:
24 lines (21 loc) 668 B
import * as React from 'react'; import { classNames } from '../../utils/classNames/index.js'; import '@floating-ui/react'; const Button = React.forwardRef((props, ref) => { const { children, submit, variant = "primary", color, disabled, className, style, onClick, isIconButton } = props; return /* @__PURE__ */ React.createElement( "button", { ref, style, onClick, disabled, type: submit ? "submit" : "button", className: classNames("button", variant, color, { disabled, icon: isIconButton }, className) }, children ); }); Button.displayName = "Button"; export { Button }; //# sourceMappingURL=Button.js.map