UNPKG

@financial-times/n-conversion-forms

Version:

Containing jsx components and styles for forms included on Accounts and Acqusition apps (next-signup, next-profile, next-retention, etc).

22 lines (19 loc) 454 B
import React from 'react'; import PropTypes from 'prop-types'; export function Form({ children, action = '', method = 'POST' }) { return ( <div className="ncf__wrapper"> <form className="ncf" action={action} method={method} noValidate> {children} </form> </div> ); } Form.propTypes = { children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.node), PropTypes.node, ]), action: PropTypes.string, method: PropTypes.string, };