Skip to content

Commit df90f0f

Browse files
Merge pull request #1491 from garygong/tooltip
Add Field Level Help and Inline Help variants to Input
2 parents ee8157f + 18df0be commit df90f0f

20 files changed

+1247
-185
lines changed

components/component-docs.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4507,6 +4507,13 @@
45074507
"required": false,
45084508
"description": "Message to display when the input is in an error state. When this is present, also visually highlights the component as in error."
45094509
},
4510+
"fieldLevelHelpTooltip": {
4511+
"type": {
4512+
"name": "node"
4513+
},
4514+
"required": false,
4515+
"description": "A [Tooltip](https://react.lightningdesignsystem.com/components/tooltips/) component that is displayed next to the label. The props from the component will be merged and override any default props."
4516+
},
45104517
"fixedTextLeft": {
45114518
"type": {
45124519
"name": "union",
@@ -4565,6 +4572,13 @@
45654572
"required": false,
45664573
"description": "Every input must have a unique ID in order to support keyboard navigation and ARIA support."
45674574
},
4575+
"inlineHelpText": {
4576+
"type": {
4577+
"name": "string"
4578+
},
4579+
"required": false,
4580+
"description": "Displays help text under the input."
4581+
},
45684582
"inputRef": {
45694583
"type": {
45704584
"name": "func"

components/input/__docs__/site-stories.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const siteStories = [
88
require('raw-loader!@salesforce/design-system-react/components/input/__examples__/icons.jsx'),
99
require('raw-loader!@salesforce/design-system-react/components/input/__examples__/error.jsx'),
1010
require('raw-loader!@salesforce/design-system-react/components/input/__examples__/inactiveInputs.jsx'),
11+
require('raw-loader!@salesforce/design-system-react/components/input/__examples__/inline-help.jsx'),
12+
require('raw-loader!@salesforce/design-system-react/components/input/__examples__/field-level-help.jsx'),
1113
];
1214

1315
module.exports = siteStories;

0 commit comments

Comments
 (0)