Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BenJanecke/0b3018e530ea5ade5dfe6b3c07f23b5d to your computer and use it in GitHub Desktop.
Save BenJanecke/0b3018e530ea5ade5dfe6b3c07f23b5d to your computer and use it in GitHub Desktop.
MUI Comp
"Mui Component": {
"prefix": "muicomp",
"body": [
"import * as React from 'react';",
"import classnames from 'classnames';",
"import { withStyles, createStyles, WithStyles, Theme } from '@material-ui/core/styles';",
"",
"const styles = (theme: Theme) => createStyles({",
"\troot: {},",
"});",
"",
"export type $1Props = {",
"",
"} & React.HTMLAttributes<HTMLDivElement> & WithStyles<typeof styles>;",
"",
"const $1Unstlyed: React.SFC<$1Props> = ({ classes, children, className }) => (",
"\t<div className={classnames(classes.root, className)}>",
"\t\t{children}",
"\t</div>",
")",
"",
"export const $1 = withStyles(styles)($1Unstlyed);",
],
"description": "Kit comp"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment