Live Editor (wip)

Get an idea on how it feels to write Prismic models using pris-types! Well, minor linting, TypeScript support and auto-save of your model...

Make sure you export const Model somewhere, use PrisTypes.shape or the aternate syntax and preview the result. Looks good? What you see here is what you would get in a real-world, Prismic project ✌️

export const Model = PrisTypes.shape({
  __meta: { title: 'My Slice', description: 'A simple slice' },
  defaultVariation: PrisTypes.variation({
    primary: {
      title: PrisTypes.RichText({ options: ['heading1'] }),
      description: PrisTypes.RichText({
        placeholder: "short length text please"
      }),
    },
    items: {
      color: PrisTypes.Color
    }
  })
})
{}