Unlock seamless workflows and faster delivery with our latest releases – get the details

Why are Arrays used to Set Variables in Sanity UI?

2 replies
Last updated: Jul 22, 2021
Sanity UI—what's up with the arrays to set some variables? Is it for breakpoints? e.g.
padding={[3, 3, 4]}
Jul 22, 2021, 11:15 PM
You're exactly right: it's for breakpoints. I'm not sure if it's documented yet (I'll take a look a bit later) but if you check the Arcade you can see them in action.
Jul 22, 2021, 11:18 PM
Perfect. Thanks—I did a little test myself and confirmed 🙂
Doesn't look like it's documented yet as far as I can tell. Getting Started just has an example of setting a single number for padding. No mention I could find on what the breakpoints are—ordering, browser sizes, etc.
Jul 22, 2021, 11:19 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?