How to use the @instructure/ui-form-field/lib/utils/FormPropTypes.message function in @instructure/ui-form-field

To help you get started, we’ve selected a few @instructure/ui-form-field 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 instructure / instructure-ui / packages / ui-forms / src / components / NumberInput / index.js View on Github external
decimalPrecision: xor(PropTypes.number, 'significantDigits'),
    /**
     * Specify the number of significant digits. If the input has more
     * significant digits, it will be rounded on blur. If it has less, traling
     * zeros will be added on blur.
     *
     * Pass either decimalPrecision or significantDigits, not both.
     */
    significantDigits: xor(PropTypes.number, 'decimalPrecision'),
    /**
    * object with shape: `{
    * text: PropTypes.string,
    * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
    *   }`
    */
    messages: PropTypes.arrayOf(FormPropTypes.message),
    /**
      A standard language id
    **/
    locale: PropTypes.string,
    size: PropTypes.oneOf(['medium', 'large']),
    layout: PropTypes.oneOf(['stacked', 'inline']),
    width: PropTypes.string,
    inline: PropTypes.bool,
    /**
    * Html placeholder text to display when the input has no value. This should be hint text, not a label
    * replacement.
    */
    placeholder: PropTypes.string,
    /**
     * Whether or not to disable the input
     */

@instructure/ui-form-field

Form layout components.

MIT
Latest version published 7 days ago

Package Health Score

87 / 100
Full package analysis

Similar packages