Here's a VS Code snippet to facilitate the day-to-day workflow with styled-components-breakpoint.
Bonus: choose the breakpoint by snippet choices. :)
{
"styled-components-breakpoint": {
"prefix": "break",
"body": [
"${breakpoint('${1|sm,md,lg,xl,xxl|}')`",
"\t$0",
"`}"
],
"description": "Shortcut to make a styled-components-breakpoint breakpoint"
},
"styled-components-breakpoint selected": {
"prefix": "breakselected",
"body": [
"${breakpoint('${1|sm,md,lg,xl,xxl|}')`",
"\t$TM_SELECTED_TEXT$0",
"`}"
],
"description": "Shortcut to make a styled-components-breakpoint of selected code"
},
}
Here's a VS Code snippet to facilitate the day-to-day workflow with styled-components-breakpoint.
There's 2 versions:
break: just the "wrapper" syntaxbreakselected: wrapps on selected textBonus: choose the breakpoint by snippet choices. :)
Why no "xs" breakpoint on choices? Mobile first.