From 7e79436383980e8997d899fbf3f791c2ab2b283b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Po=C5=9Bpiech?= Date: Tue, 18 Jun 2024 09:58:09 +0200 Subject: [PATCH] updated zod playground (all fields) --- website/lib/presets.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/website/lib/presets.ts b/website/lib/presets.ts index 642591fad..98c7cb6cb 100644 --- a/website/lib/presets.ts +++ b/website/lib/presets.ts @@ -132,11 +132,9 @@ const presets = { bool: z.boolean(), nested: z.object({ text: z.string() }), date: z.date(), - // TODO: Custom label and placeholder. - list: z.array(z.string()), + list: z.array(z.string().uniforms({ label: 'List Text', placeholder: 'List Text Placeholder' })), select: z.enum(['a', 'b']), - // TODO: Enums with custom props. - radio: z.enum(['a', 'b']), + radio: z.enum(['a', 'b']).uniforms({ checkboxes: true }), }) }) `,