mirror of
https://github.com/SomboChea/ui
synced 2024-10-01 05:47:50 +07:00
11 lines
340 B
TypeScript
11 lines
340 B
TypeScript
|
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;
|