Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

IconButton.js 662B

1234567891011121314151617181920
  1. import React from 'react'
  2. import { IconButtonContainer, IconButtonStyled } from "./IconButton.styled"
  3. import PropTypes from "prop-types";
  4. export const IconButton = (props) => {
  5. return <IconButtonContainer style={props.containerStyle} className={props.className}>
  6. <IconButtonStyled onClick={props.onClick} sx={props.style} iconColor={props.iconColor}>
  7. {props.children}
  8. </IconButtonStyled>
  9. </IconButtonContainer>
  10. }
  11. IconButton.propTypes = {
  12. children: PropTypes.node,
  13. onClick: PropTypes.func,
  14. containerStyle: PropTypes.any,
  15. style: PropTypes.any,
  16. className: PropTypes.string,
  17. iconColor: PropTypes.string
  18. }