Add onClick prop to Button's Component element

This commit is contained in:
nickfiacco-bolt 2020-12-04 16:35:28 -08:00
parent 7f8d37b3b9
commit e6f2c6870a

View File

@ -52,6 +52,7 @@ const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
data-variant={variant} data-variant={variant}
ref={mergeRefs([ref, buttonRef])} ref={mergeRefs([ref, buttonRef])}
className={rootClassName} className={rootClassName}
onClick={onClick}
disabled={disabled} disabled={disabled}
style={{ style={{
width, width,