aboutsummaryrefslogtreecommitdiffstats
path: root/src/content.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content.config.ts')
-rw-r--r--src/content.config.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/content.config.ts b/src/content.config.ts
index c9c4810..f0c8009 100644
--- a/src/content.config.ts
+++ b/src/content.config.ts
@@ -72,8 +72,19 @@ const forms = defineCollection({
}),
label: z.string(),
type: z
- .enum(['text', 'email', 'number', 'textarea', 'tel', 'url'])
+ .enum([
+ 'text',
+ 'email',
+ 'number',
+ 'textarea',
+ 'tel',
+ 'url',
+ 'select',
+ 'checkbox',
+ 'radio',
+ ])
.default('text'),
+ options: z.array(z.string()).optional(),
required: z.boolean().default(false),
}),
)