From 0db795420f68e2b275f7d5e54c2207d2a321c5f0 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Date: Wed, 15 Mar 2023 09:54:47 -0500 Subject: [PATCH] feat: typewind and twin snippets --- MyUltiSnips/typescriptreact.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MyUltiSnips/typescriptreact.snippets b/MyUltiSnips/typescriptreact.snippets index 8b52cf0a..6742514d 100644 --- a/MyUltiSnips/typescriptreact.snippets +++ b/MyUltiSnips/typescriptreact.snippets @@ -17,6 +17,14 @@ const ${1:name} = ({}: $1Props) => { export default $1; endsnippet +snippet ta "twin.macro attr" bi +tw="$0" +endsnippet + +snippet cw "typewind attr" bi +className={tw.$0} +endsnippet + snippet ct "twind className tw``" bi className={tw\`$0\`} endsnippet