feat: add inputMaxLength property to Modal component for better input control

This commit is contained in:
2026-01-31 11:41:15 -05:00
parent 05cd024110
commit 005cb5de23
3 changed files with 6 additions and 1 deletions
@@ -20,6 +20,7 @@ type ModalState = {
error: string;
placeholder: string;
inputType: string;
maxInputLength?: number;
items: ModalItem[];
initialValue: unknown;
totpActive: boolean | null;
@@ -42,6 +43,7 @@ const initialState: ModalState = {
error: '',
placeholder: '',
inputType: 'text',
maxInputLength: undefined,
items: [],
initialValue: null,
totpActive: null,