ALink.tsx 466 B

1234567891011121314151617181920212223242526
  1. import styled from "styled-components";
  2. import { Box, BoxProps } from "reflexbox/styled-components";
  3. interface Props extends BoxProps {
  4. href?: string;
  5. title?: string;
  6. target?: string;
  7. }
  8. const ALink = styled(Box).attrs({
  9. as: "a"
  10. })<Props>`
  11. cursor: pointer;
  12. color: #2196f3;
  13. border-bottom: 1px dotted transparent;
  14. text-decoration: none;
  15. :hover {
  16. border-bottom-color: #2196f3;
  17. }
  18. `;
  19. ALink.defaultProps = {
  20. pb: "1px"
  21. };
  22. export default ALink;