UNPKG

@trellixio/roaster-coffee

Version:
8 lines (7 loc) 498 B
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';