Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72d56bd

Browse files
authored
docs(studio): add arrays type in editor
1 parent 1c234a2 commit 72d56bd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/content/docs/8.studio/3.content.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default defineContentConfig({
193193
```
194194

195195
:::preview-card{icon="i-lucide-eye" label="Generated Form"}
196-
![Form preview](/blog/generated-form.png)
196+
![Form preview](/docs/studio/preview-schema.png)
197197
:::
198198
::
199199

@@ -206,6 +206,8 @@ Primitive Zod types are automatically mapped to appropriate form inputs in:
206206
- **Number** → Number input (counter)
207207
- **Boolean** → Toggle switch
208208
- **Enum** → Select dropdown
209+
- **Arrays of strings** → List of badge inputs
210+
- **Arrays of objects** → Accordion of items with embedded form
209211

210212
### Custom Inputs Mapping
211213

@@ -233,10 +235,6 @@ This option can be set to avoid the display of a field in the Studio editor.
233235
Studio inputs are fully extensible. We can create as many input as we want based on our users needs.
234236
::
235237

236-
::warning
237-
Arrays are not yet handled but should be generated soon thanks to collections and user-defined schemas.
238-
::
239-
240238
## Code editor
241239

242240
![Edit directly your raw content with our code editor](/docs/studio/code-editor.webp)
138 KB
Loading

0 commit comments

Comments
 (0)