# Developing slice variations

**URL:** <https://community.prismic.io/t/developing-slice-variations/2555>\
**Category:** Developing with Prismic\
**Created:** [November 3, 2020, 3:39pm UTC](https://community.prismic.io/t/developing-slice-variations/2555 "2020-11-03T15:39:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samuel/32/1112_2.png) [@samuel](https://community.prismic.io/u/samuel)\
**Post date:** [November 3, 2020, 3:39pm UTC](https://community.prismic.io/t/developing-slice-variations/2555/1 "2020-11-03T15:39:23Z")

</div>

Say I want to add a variation for a slice, lika a background on/off (boolean value).

At first, if I look in [this](https://github.com/lihbr/sms-hoy/blob/master/hoy-slices/slices/TextImage/index.stories.js) sms-hoy slice it looks like a storybook boolean is used to control the inversion of this slice. The boolean then alters the slice label, right, so I guess i shoould find a slice label somewhere in Prismic? But I cant find where to add labels to the slices i created using slice machine.

Then i saw there's something new called "variations". Is this something that should be used instead?

So all in all, whats the preferred way of adding slice variations in both Prismics editor and Storybook?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [November 10, 2020, 10:37am UTC](https://community.prismic.io/t/developing-slice-variations/2555/5 "2020-11-10T10:37:10Z")

</div>

Hello Samuel,

Thank you for contacting us. We have discussed about this here:-

> [@How to add variations of a slice?](https://community.prismic.io/t/how-to-add-variations-of-a-slice/2622/2):
>
> Hey @kris, thanks for reaching out! Currently slice variations are not released, they will be somewhen at the beginning of next year hopefully. Preparation work has been made for those that's why you can notice some reference in the model.json file~ So that's why variations are not displayed yet in the content room when [you push a slice through the UI](https://www.slicemachine.dev/documentation/slice-builder#push-your-slice-to-prismic-) too. I hope this is not a big disappointment for you, I'm also really looking forward to playing with them! Let me know if anything else …

**For background on/off** : You can add a boolean field on Prismic then you need to develop code for handling this boolean variable and apply css classes accordingly.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [November 16, 2020, 4:00pm UTC](https://community.prismic.io/t/developing-slice-variations/2555/6 "2020-11-16T16:00:22Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:59pm UTC](https://community.prismic.io/t/developing-slice-variations/2555/7 "2021-12-09T17:59:45Z")

</div>


