Files
print-calculator/frontend/src/app/shared/components/app-input/app-input.component.html
2026-03-03 11:46:26 +00:00

24 lines
472 B
HTML

<div class="form-group">
@if (label()) {
<label [for]="id()">
{{ label() }}
@if (required()) {
<span class="required-mark">*</span>
}
</label>
}
<input
[id]="id()"
[type]="type()"
[placeholder]="placeholder()"
[value]="value"
(input)="onInput($event)"
(blur)="onTouched()"
[disabled]="disabled"
class="form-control"
/>
@if (error()) {
<span class="error-text">{{ error() }}</span>
}
</div>