@trellixio/roaster-coffee
Version:
Beans' product component library
8 lines (7 loc) • 498 B
JavaScript
import * as React from 'react';
import { classNames } from '@/utils';
export const ButtonIcon = React.forwardRef((props, ref) => {
const { children, submit, variant = 'close', disabled, className, style, onClick } = props;
return (React.createElement("button", { ref: ref, style: style, onClick: onClick, disabled: disabled, type: submit ? 'submit' : 'button', className: classNames('button-icon', variant, { disabled }, className) }, children));
});
ButtonIcon.displayName = 'ButtonIcon';