Skip to content

Commit 3003ff4

Browse files
docs(sx-prop): Add more detail to responsive arrays explanation (#2116)
Co-authored-by: Lachlan Campbell <[email protected]>
1 parent dd8ad9e commit 3003ff4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/docs/src/pages/sx-prop.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ export default (props) => (
235235
)
236236
```
237237

238+
With responsive arrays, the 0-th element maps to all breakpoints, and the n-th
239+
element maps to the (n - 1)-th breakpoint. For example:
240+
241+
- The default width is 100%
242+
- At the 0th breakpoint & larger, width is 50%
243+
- At the 1st breakpoint & larger, width is 25%
244+
238245
### Skipping Breakpoints
239246

240247
If you want to skip a breakpoint, you can use the value `null`. This is useful

0 commit comments

Comments
 (0)