mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
13 lines
407 B
TypeScript
13 lines
407 B
TypeScript
|
import { default as MaterialUIFab, FabProps } from '@material-ui/core/Fab';
|
||
|
import React, { forwardRef } from 'react';
|
||
|
|
||
|
type FloatingActionButtonRef = HTMLButtonElement;
|
||
|
|
||
|
const FloatingActionButton = forwardRef<FloatingActionButtonRef, FabProps>(
|
||
|
function FloatingActionButton(props, ref) {
|
||
|
return <MaterialUIFab {...props} ref={ref} data-testid="fab" />;
|
||
|
}
|
||
|
);
|
||
|
|
||
|
export default FloatingActionButton;
|