
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeExactly! Yes, those array props in Sanity UI are for responsive breakpoints.
When you write something like padding={[3, 3, 4]}, you're defining different padding values at different viewport breakpoints. The array maps to Sanity UI's built-in media query breakpoints:
So padding={[3, 3, 4]} means:
3 at 0px and above3 at 360px and above4 at 600px and aboveThis pattern is called responsive props in Sanity UI, and it works across many components and properties like padding, margin, fontSize, space, etc. It's a convenient way to handle responsive design without writing media queries manually.
The Sanity UI documentation mentions that "many primitives support responsive properties through arrays, allowing different values at various breakpoints for properties like size, padding, and spacing." This approach is inspired by similar patterns in other design systems like Theme UI and Styled System, making it familiar if you've used those libraries before.
You can see this pattern in action throughout the Sanity UI codebase—look at components like Box, Stack, Text, and others that accept spacing and sizing props.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store