Skip to content

Commit

Permalink
docs(FormCheck): add feedbackType (#6745)
Browse files Browse the repository at this point in the history
* docs: Add feedbackType to FormCheck

Introduced in commit ab9e080 but not yet documented.

* Update src/FormCheck.tsx

Co-authored-by: Kyle Tsang <6854874+kyletsang@users.noreply.github.com>

---------

Co-authored-by: Kyle Tsang <6854874+kyletsang@users.noreply.github.com>
  • Loading branch information
louispotok and kyletsang committed Dec 30, 2023
1 parent d8f905c commit 8518c68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/FormCheck.tsx
Expand Up @@ -120,6 +120,12 @@ const propTypes = {

/** A message to display when the input is in a validation state */
feedback: PropTypes.node,

/**
* Specify whether the feedback is for valid or invalid fields
* @type {('valid'|'invalid')}
*/
feedbackType: PropTypes.oneOf(['valid', 'invalid']),
};

const FormCheck: BsPrefixRefForwardingComponent<'input', FormCheckProps> =
Expand Down

0 comments on commit 8518c68

Please sign in to comment.