layout
function property that allows you to define the layout of the data in the Typebot editor.
Options extends the z.ZodObject<any>
schema.
The Forge provide convenient functions to create the options schema for you. Even though you could provide straight Zod schemas, we highly recommend using option
functions to create the options schema.
Here is an example of how a schema can be created using the option
and layout
functions:
row
, the label will be displayed on
the left of the input.true
.fetchModels
should match the id
of the fetcher that you defined in the
fetchers
prop of the action. See Fetcher for more information.