Skip to content

Commit 872351e

Browse files
authored
Merge pull request #4 from kr-anurag/patch-1
feat: add nextjs snippet
2 parents 55b9a74 + 8bd2027 commit 872351e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

snippets/next-typescript.code-snippets

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,21 @@
2222
""
2323
],
2424
"description": "Get Static Props Next.js"
25-
}
25+
},
26+
"taytay": {
27+
"prefix": "taytay",
28+
"body": [
29+
"import type { NextPage } from \"next\";",
30+
"",
31+
"const ${1:${TM_FILENAME}}: NextPage = () => {",
32+
" return (",
33+
" <>",
34+
" </>",
35+
" )",
36+
"}",
37+
"",
38+
"export default ${1:${TM_FILENAME}}"
39+
],
40+
"description": "NextPage component with NextPage type"
41+
}
2642
}

0 commit comments

Comments
 (0)