Created
June 23, 2023 14:54
-
-
Save paulospiguel/600c4111ab90e880971add3b2aec1130 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"React Function Component UI-KIT": { | |
"scope": "typescriptreact", | |
"prefix": "rfc-ui", | |
"body": [ | |
"import React, { ComponentProps } from \"react\";", | |
"", | |
"import { cn } from \"ui-kit\";", | |
"", | |
"interface ${TM_FILENAME_BASE}Props extends ComponentProps<\"$0\"> {}", | |
"", | |
"export const ${TM_FILENAME_BASE}: React.FC<${TM_FILENAME_BASE}Props> = ({ className, ...props }) => {", | |
" return (<$0 className={cn(\"\", className)} {...props}></$0>);", | |
"};", | |
"" | |
], | |
"description": "React Function Component UI-KIT" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make public