ahbeng/NUSMods

View on GitHub
website/src/views/components/Fab.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import * as React from 'react';
import classnames from 'classnames';

import styles from './Fab.scss';

type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & {
  children: React.ReactNode;
  className?: string;
};

const Fab: React.FC<Props> = ({ children, className, ...otherProps }) => (
  <div className={classnames(className, styles.fab)}>
    <button type="button" className="mdc-fab material-icons" {...otherProps}>
      {children}
    </button>
  </div>
);

export default Fab;