diff --git a/src/components/ButtonUnderline/index.tsx b/src/components/ButtonUnderline/index.tsx new file mode 100644 index 0000000..510b2a9 --- /dev/null +++ b/src/components/ButtonUnderline/index.tsx @@ -0,0 +1,24 @@ +import { PropsWithChildren } from 'react' +import styles from './style.module.scss' + +interface ButtonUnderlineProps { + onClick: () => void + disabled?: boolean | undefined +} + +export const ButtonUnderline = ({ + onClick, + disabled = false, + children +}: PropsWithChildren) => { + return ( + + ) +} diff --git a/src/components/ButtonUnderline/style.module.scss b/src/components/ButtonUnderline/style.module.scss new file mode 100644 index 0000000..a357362 --- /dev/null +++ b/src/components/ButtonUnderline/style.module.scss @@ -0,0 +1,25 @@ +@import '../../styles/colors.scss'; + +.button { + color: $primary-main !important; + display: flex; + align-items: center; + justify-content: center; + gap: 12px; + + width: max-content; + margin: 0 auto; + + // Override default styling + border: none !important; + outline: none !important; + + // Override leaky css in sign page + background: transparent !important; + + &:focus, + &:hover { + text-decoration: underline; + text-decoration-color: inherit; + } +}