Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DP-27950 Add nodes to InputTextFuzzy label prop types #1793

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelogs/DP-27950.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Added:
- project: React
component: InputTextFuzzy
description: Allow InputTextFuzzy label's to contain both strings and JSX elements. (#1793)
issue: DP-27950
impact: Patch
5 changes: 4 additions & 1 deletion packages/react/src/components/forms/InputTextFuzzy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ InputTextFuzzy.propTypes = {
/** The id of the typeahead element. */
id: PropTypes.string.isRequired,
/** The label text above the input text box. */
label: PropTypes.string,
label: PropTypes.oneOfType([
PropTypes.string,
PropTypes.node
]),
/** The placeholder text to appear in the input text box. */
placeholder: PropTypes.string,
/** Style the input with a box outline. */
Expand Down