Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Link.js 614B

12345678910111213141516171819202122232425262728
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import { LinkStyled } from "./Link.styled";
  4. const Link = (props) => {
  5. return (
  6. <LinkStyled {...props} href={props.href} onClick={props.onClick}>
  7. {props.children}
  8. </LinkStyled>
  9. );
  10. };
  11. Link.propTypes = {
  12. href: PropTypes.string,
  13. children: PropTypes.node,
  14. font: PropTypes.string,
  15. align: PropTypes.oneOf(["left", "right", "center"]),
  16. textsize: PropTypes.string,
  17. lineheight: PropTypes.string,
  18. onClick: PropTypes.func,
  19. };
  20. Link.defaultProps = {
  21. font: "Poppins",
  22. align: "left",
  23. textsize: "14px",
  24. };
  25. export default Link;