feat: enhance input component layout with labels and improve styling
This commit is contained in:
@@ -66,8 +66,10 @@ export class InputComponent {
|
||||
private readonly editableDisabled = signal(false);
|
||||
private readonly passwordVisible = signal(false);
|
||||
private lastClearTrigger = 0;
|
||||
private readonly defaultId = `app-input-${globalThis.crypto.randomUUID()}`;
|
||||
|
||||
readonly invalid = input(false);
|
||||
readonly id = input(this.defaultId);
|
||||
readonly placeholder = input('');
|
||||
readonly value = input<string | number>('');
|
||||
readonly maxlength = input<number | null>(null);
|
||||
@@ -85,8 +87,6 @@ export class InputComponent {
|
||||
readonly fileChange = output<File | null>();
|
||||
readonly visibleChange = output<boolean>();
|
||||
|
||||
protected readonly id = `app-input-${globalThis.crypto.randomUUID()}`;
|
||||
|
||||
protected readonly inputType = computed(() => {
|
||||
const type = this.type();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user