0

I'm using Prismic with Slicezone and for each component is generated a folder with component and json (with data model etc..).

I created a variant of a component, the json was updated but a component was not created. How can I use this variant? Do I have to create the component myself?

EDIT:

I found this:

  :class="{
   'bg-slate-100': slice.variation === 'lightSlate',
   'bg-white': slice.variation === 'white'
  }"

Inside slice prop there is 'variation', you can use it to render components or change style. It makes sense, this is a variation, not a different component.

0 Answers0