Files
component-party/content/4-component-composition/3-slot/react/FunnyButton.jsx
Mathieu Schimmerling 6401ba12ea Revert "Merge pull request #73 from matschik/feat/required-react-import"
This reverts commit a69607362c, reversing
changes made to c17359e1e6.
2022-05-17 12:11:00 +00:00

27 lines
541 B
JavaScript

import PropTypes from 'prop-types';
export default function FunnyButton({ children }) {
return (
<button
style={{
background: 'rgba(0, 0, 0, 0.4)',
color: '#fff',
padding: '10px 20px',
fontSize: '30px',
border: '2px solid #fff',
margin: '8px',
transform: 'scale(0.9)',
boxShadow: '4px 4px rgba(0, 0, 0, 0.4)',
transition: 'transform 0.2s cubic-bezier(0.34, 1.65, 0.88, 0.925) 0s',
outline: '0',
}}
>
{children}
</button>
);
}
FunnyButton.propTypes = {
children: PropTypes.node,
};