Getting Started
Setup
Setup instructions for conjure
Step 1
Install
conjure-svelte
andzod
via your favorite package manager.terminalpnpm add -D conjure-svelte zod
Step 2
Import conjure and zod.
TSimport { Base, Form } from 'conjure-svelte'; import * as zod from 'zod';
Step 3
Construct the form schema
TSconst form = Base.newForm([ { type: 'input', name: 'email', label: 'Email', schema: zod.string().email() }, { type: 'input', name: 'password', label: 'Password', schema: zod.string().min(16) } ]);
Step 4
Use the constructed form.
SVELTE<Form {form} />