diff --git a/src/form-control.ts b/src/form-control.ts index 7cbd04d..3105548 100644 --- a/src/form-control.ts +++ b/src/form-control.ts @@ -1,7 +1,21 @@ export class FormControl { name: string; - type?: 'text' | 'checkbox' | 'radio' = 'text'; // add more - value?: string | number | null | string[]; + type?: 'text' | 'checkbox' | 'radio' = 'text'; // add more + value?: string | number | null | string[]; label?: string; labelPosition?: 'right' | 'left' = 'left'; } + +/** + * TODO: Create classes for each control type + */ + +export class Checkbox extends FormControl { + type: 'checkbox'; + checked: boolean; +} + +export class Radio extends FormControl { + type: 'checkbox'; + checked: boolean; +}