2022-05-03 15:08:28 +02:00
|
|
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
|
|
2022-08-09 23:50:14 +02:00
|
|
|
export interface IInput {
|
|
|
|
|
type: "input",
|
2022-05-03 15:08:28 +02:00
|
|
|
label: string;
|
2022-08-05 15:10:37 +02:00
|
|
|
placeholder?: string;
|
2022-08-09 23:50:14 +02:00
|
|
|
default?: string;
|
2022-05-03 15:08:28 +02:00
|
|
|
password?: boolean;
|
|
|
|
|
icon?: IconProp;
|
|
|
|
|
}
|
2022-08-09 23:50:14 +02:00
|
|
|
|
|
|
|
|
export interface ICheckbox {
|
|
|
|
|
type: "checkbox",
|
|
|
|
|
label: string;
|
|
|
|
|
checked?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ISelect {
|
|
|
|
|
type: "select",
|
|
|
|
|
label: string;
|
|
|
|
|
default?: string;
|
|
|
|
|
options?: { value: string; label?: string }[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface INumber {
|
|
|
|
|
type: "number",
|
|
|
|
|
label: string;
|
|
|
|
|
placeholder?: string;
|
|
|
|
|
default?: number;
|
|
|
|
|
}
|