1. Getting Started
  2. Setup

Getting Started

Setup

Setup instructions for conjure

  1. Step 1

    Install conjure-svelte and zod via your favorite package manager.

    terminal
    pnpm add -D conjure-svelte zod
    
  2. Step 2

    Import conjure and zod.

    TS
    import { Base, Form } from 'conjure-svelte';
    import * as zod from 'zod';
    
  3. Step 3

    Construct the form schema

    TS
    const form = Base.newForm([
      {
        type: 'input',
        name: 'email',
        label: 'Email',
        schema: zod.string().email()
      },
      {
        type: 'input',
        name: 'password',
        label: 'Password',
        schema: zod.string().min(16)
      }
    ]);
    
  4. Step 4

    Use the constructed form.

    SVELTE
    <Form {form} />