How to use the informed.withFormApi function in informed

To help you get started, we’ve selected a few informed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LN-Zap / zap-desktop / renderer / components / Form / TransactionFeeInput.js View on Github external
formApi: PropTypes.object.isRequired,
  initialValue: PropTypes.string,
  isQueryingFees: PropTypes.bool,
  label: PropTypes.string,
  lndTargetConfirmations: PropTypes.shape({
    fast: PropTypes.number.isRequired,
    medium: PropTypes.number.isRequired,
    slow: PropTypes.number.isRequired,
  }).isRequired,
}

TransactionFeeInput.defaultProps = {
  initialValue: TRANSACTION_SPEED_SLOW,
}

export default withFormApi(TransactionFeeInput)
github LN-Zap / zap-desktop / app / components / UI / TransactionFeeInput.js View on Github external
}

TransactionFeeInput.propTypes = {
  fee: PropTypes.number,
  field: PropTypes.string.isRequired,
  formApi: PropTypes.object.isRequired,
  initialValue: PropTypes.string,
  isQueryingFees: PropTypes.bool,
  label: PropTypes.string,
}

TransactionFeeInput.defaultProps = {
  initialValue: TRANSACTION_SPEED_SLOW,
}

export default withFormApi(TransactionFeeInput)
github LN-Zap / zap-desktop / renderer / components / UI / LndConnectionStringEditor.js View on Github external
)
}

LndConnectionStringEditor.propTypes = {
  field: PropTypes.string.isRequired,
  formApi: PropTypes.object.isRequired,
  hideStringMessage: PropTypes.object.isRequired,
}

export default withFormApi(LndConnectionStringEditor)
github LN-Zap / zap-desktop / app / components / UI / LndConnectionStringEditor.js View on Github external
)
}

LndConnectionStringEditor.propTypes = {
  field: PropTypes.string.isRequired,
  formApi: PropTypes.object.isRequired,
  hideStringMessage: PropTypes.object.isRequired,
}

export default withFormApi(LndConnectionStringEditor)

informed

A lightweight framework and utility for building powerful forms in React applications

MIT
Latest version published 10 days ago

Package Health Score

84 / 100
Full package analysis