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
Add makeResponsiveValue for readable value. #2120
Comments
If you also think it is good, tell me advice (I am pure newbie...) and I will try to make it better. |
import type { CSSProperties } from 'theme-ui';
const rowChangeBreakPoint = 'md';
mRV({
flexDirection: mRV<CSSProperties['flexDirection']>({
_: 'row',
[rowChangeBreakPoint]: 'column',
}),
}) // => ['row', null, 'column', null, null] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know that we can use array to get the responsive value. But sometime I hope there is a function that put a object with readable key and output the array.
Here is my solution:
The text was updated successfully, but these errors were encountered: