diff --git a/lib/components/Button/index.tsx b/lib/components/Button/index.tsx index c13266f..7cb0c83 100644 --- a/lib/components/Button/index.tsx +++ b/lib/components/Button/index.tsx @@ -1,12 +1,15 @@ -import { FC } from 'react' +import { FC, useRef } from 'react' -// STYLES -import classNames from 'classnames' -import styles from './styles.module.scss' +// HOOKS +import useRipple from '../../hooks/useRipple' // TYPES import { ButtonProps as Props } from './types' +// STYLES +import classNames from 'classnames' +import styles from './styles.module.scss' + const Button: FC = ({ className, children, @@ -21,8 +24,12 @@ const Button: FC = ({ onClick, ...rest }: Props) => { + const buttonRef = useRef(null) + const ripples = useRipple(buttonRef) + return (