Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Simplified Responsive Variants Api #1133

Open
Code-Victor opened this issue Jan 13, 2023 · 0 comments
Open

A Simplified Responsive Variants Api #1133

Code-Victor opened this issue Jan 13, 2023 · 0 comments

Comments

@Code-Victor
Copy link

When using Stitches responsive variants, I get a bit frustrated having to continually add quotes and the "@" sign. It would be better if we could do away with them and go for a simpler approach.
So instead of this 👇

<Stack
  gap={{ "@sm": 2, "@md": 5, "@lg": 10 }}
  direction={{ "@sm": "column", "@lg": "row"}}
>
  <Box />
  <Box />
  <Box />
</Stack>

We can use this 👇

<Stack
  gap={{ sm: 2, md: 5, lg: 10 }}
  direction={{ sm: "column", lg: "row"}}
>
  <Box />
  <Box />
  <Box />
</Stack>

Simpler and easier on the eye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant