Skip to content

Instantly share code, notes, and snippets.

@paulospiguel
Created June 23, 2023 14:54
Show Gist options
  • Save paulospiguel/600c4111ab90e880971add3b2aec1130 to your computer and use it in GitHub Desktop.
Save paulospiguel/600c4111ab90e880971add3b2aec1130 to your computer and use it in GitHub Desktop.
{
"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"
}
}
@paulospiguel
Copy link
Author

make public

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment