1
0
mirror of https://github.com/SomboChea/ui synced 2024-10-01 05:47:50 +07:00
verdaccio-ui/src/muiComponents/Button/Button.tsx

11 lines
340 B
TypeScript
Raw Normal View History

2019-10-06 22:17:36 +07:00
import React, { forwardRef } from 'react';
import { default as MaterialUIButton, ButtonProps } from '@material-ui/core/Button';
type ButtonRef = HTMLElementTagNameMap['button'];
const Button = forwardRef<ButtonRef, ButtonProps>(function Button(props, ref) {
return <MaterialUIButton {...props} ref={ref} />;
});
export default Button;