Skip to content

Form


Light Mode

ts
const result = await goodDialogs.form("Send your data", [
    { name: "name", label: "Name", type: "text" },
    { name: "lastName", label: "Last Name", type: "text" },
]);
if (!result) return goodDialogs.cancelled();

goodDialogs.success(JSON.stringify(result).toString());