0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/packages/plugins/ui-theme/src/components/FloatingActionButton.tsx
2021-04-15 21:10:49 +02:00

12 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;