The input in this example uses the ReactiveFormsModule to display errors.
-
\ No newline at end of file
+
+
+
Password With Reactive Forms
+
This is a special case where hints and errors for passwords are displayed.
+
+
diff --git a/libs/design/input/examples/src/examples.ts b/libs/design/input/examples/src/examples.ts
index acee588cb3..22a5c662c4 100644
--- a/libs/design/input/examples/src/examples.ts
+++ b/libs/design/input/examples/src/examples.ts
@@ -1,11 +1,15 @@
import { BasicInputComponent } from './basic-input/basic-input.component';
import { InputDisabledComponent } from './input-disabled/input-disabled.component';
import { InputErrorComponent } from './input-error/input-error.component';
+import { InputHintComponent } from './input-hint/input-hint.component';
import { InputWithFormFieldComponent } from './input-with-form-field/input-with-form-field.component';
+import { PasswordWithFormFieldComponent } from './password-with-form-field/password-with-form-field.component';
export const INPUT_EXAMPLES = [
BasicInputComponent,
InputWithFormFieldComponent,
InputDisabledComponent,
InputErrorComponent,
+ PasswordWithFormFieldComponent,
+ InputHintComponent,
];
diff --git a/libs/design/input/examples/src/input-disabled/input-disabled.component.html b/libs/design/input/examples/src/input-disabled/input-disabled.component.html
index edf6f1b289..7a115365f9 100644
--- a/libs/design/input/examples/src/input-disabled/input-disabled.component.html
+++ b/libs/design/input/examples/src/input-disabled/input-disabled.component.html
@@ -1,3 +1,4 @@
-
+
+
\ No newline at end of file
diff --git a/libs/design/input/examples/src/input-disabled/input-disabled.component.ts b/libs/design/input/examples/src/input-disabled/input-disabled.component.ts
index 38a12ae23d..08be9bd56a 100644
--- a/libs/design/input/examples/src/input-disabled/input-disabled.component.ts
+++ b/libs/design/input/examples/src/input-disabled/input-disabled.component.ts
@@ -17,5 +17,5 @@ import {
imports: [DaffFormFieldModule, DaffInputModule],
})
export class InputDisabledComponent {
-
+ isDisabled = true;
}
diff --git a/libs/design/input/examples/src/input-error/input-error.component.html b/libs/design/input/examples/src/input-error/input-error.component.html
index e8683fad5e..47143b6798 100644
--- a/libs/design/input/examples/src/input-error/input-error.component.html
+++ b/libs/design/input/examples/src/input-error/input-error.component.html
@@ -1,4 +1,12 @@
-
+
+
+ @if (control.errors?.required) {
+ Email is a required field.
+ }
+ @if (control.errors?.email) {
+ Email is not valid.
+ }
+
Hint goes here.
Value: {{ control.value }}
\ No newline at end of file
diff --git a/libs/design/input/examples/src/input-hint/input-hint.component.html b/libs/design/input/examples/src/input-hint/input-hint.component.html
new file mode 100644
index 0000000000..ca9886d677
--- /dev/null
+++ b/libs/design/input/examples/src/input-hint/input-hint.component.html
@@ -0,0 +1,5 @@
+
+
+
+