Skip to content

Commit

Permalink
updated zod playground (all fields)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Jun 18, 2024
1 parent 2a116fb commit 7e79436
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions website/lib/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
})
})
`,
Expand Down

0 comments on commit 7e79436

Please sign in to comment.