-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance
FieldContainer
with secondaryHelperText
prop and `helperT…
…extIcon` prop (#2863) `secondaryHelperText` displays additional text beneath the input, aligned to the bottom-right. `helperTextIcon` adds an icon beside helperText, error, or warning. Co-authored-by: Kerstin Reichinger <kerstin.reichinger@vivid-planet.com>
- Loading branch information
1 parent
aa02ca1
commit 589b0b9
Showing
3 changed files
with
111 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@comet/admin-theme": minor | ||
"@comet/admin": minor | ||
--- | ||
|
||
Enhance `FieldContainer` with `secondaryHelperText` prop and `helperTextIcon` prop | ||
|
||
- `helperTextIcon` displays an icon alongside the text for `helperText`, `error` or `warning`. | ||
- `secondaryHelperText` provides an additional helper text positioned beneath the input field, aligned to the bottom-right corner. | ||
|
||
**Example:** | ||
|
||
```tsx | ||
<FieldContainer label="Helper Text Icon" helperTextIcon={<Info />} helperText="Helper Text with icon" secondaryHelperText="0/100"> | ||
<InputBase onChange={handleChange} value={value} placeholder="Placeholder" /> | ||
</FieldContainer> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters