LoginInputLabel.js 427 B

1234567891011121314151617181920
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import styled from 'styled-components';
  4. const Label = styled.div`
  5. margin-bottom: 8px;
  6. `;
  7. const LoginInputLabel = ({ children, htmlFor }) => (
  8. <Label>
  9. <label htmlFor={htmlFor}>{children}</label>
  10. </Label>
  11. );
  12. LoginInputLabel.propTypes = {
  13. children: PropTypes.node.isRequired,
  14. htmlFor: PropTypes.string.isRequired,
  15. };
  16. export default LoginInputLabel;