8000 docs(FormCheck): add feedbackType (#6745) · admirhusic/react-bootstrap@8518c68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8518c68

Browse files
docs(FormCheck): add feedbackType (react-bootstrap#6745)
* 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>
1 parent d8f905c commit 8518c68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/FormCheck.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ const propTypes = {
120120

121121
/** A message to display when the input is in a validation state */
122122
feedback: PropTypes.node,
123+
124+
/**
125+
* Specify whether the feedback is for valid or invalid fields
126+
* @type {('valid'|'invalid')}
127+
*/
128+
feedbackType: PropTypes.oneOf(['valid', 'invalid']),
123129
};
124130

125131
const FormCheck: BsPrefixRefForwardingComponent<'input', FormCheckProps> =

0 commit comments

Comments
 (0)
0