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

Add @class directive #136

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add @Class directive
  • Loading branch information
lakuapik authored Jul 30, 2021
commit 6499be4bceb9c662984e48d139af41e94b971af5
10 changes: 9 additions & 1 deletion snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,5 +465,13 @@
"@endproduction"
],
"description": "production"
}
},

/* v8.x */

"class": {
"prefix": "b:class",
"body": "@class(['${1:p-4}', ${2:'font-bold' => true}])",
"description": "conditionally compiles a CSS class string"
}
}