mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-11 23:00:19 +01:00
Improved Chip Input with explanatory line
Modification of the Chip Input component to allow addition of explanatory line Co-authored-by: Laura Gorzitze<laura.gorzitze@cloudogu.com>
This commit is contained in:
2
gradle/changelog/improved_label.yml
Normal file
2
gradle/changelog/improved_label.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: Added
|
||||
description: Possibility to add explanatory line in Chip Input
|
||||
@@ -68,6 +68,7 @@ type InputFieldProps<T> = {
|
||||
label: string;
|
||||
createDeleteText?: (value: string) => string;
|
||||
helpText?: string;
|
||||
information?: string;
|
||||
error?: string;
|
||||
testId?: string;
|
||||
id?: string;
|
||||
@@ -92,6 +93,7 @@ const ChipInputField = function ChipInputField<T>(
|
||||
{
|
||||
label,
|
||||
helpText,
|
||||
information,
|
||||
readOnly,
|
||||
disabled,
|
||||
error,
|
||||
@@ -124,6 +126,7 @@ const ChipInputField = function ChipInputField<T>(
|
||||
{label}
|
||||
{helpText ? <Help className="ml-1" text={helpText} /> : null}
|
||||
</Label>
|
||||
{information ? <p className="mb-2"> {information} </p> : null}
|
||||
<div className={classNames("control", { "is-loading": isLoading })}>
|
||||
<StyledChipInput
|
||||
value={value}
|
||||
|
||||
Reference in New Issue
Block a user