{"id":18627153,"url":"https://github.com/markshust/meteor-material-ui","last_synced_at":"2025-04-11T05:31:28.770Z","repository":{"id":142878452,"uuid":"45589213","full_name":"markshust/meteor-material-ui","owner":"markshust","description":"Package that contains the React implementation of Google Material Design","archived":false,"fork":false,"pushed_at":"2016-01-08T22:42:58.000Z","size":25,"stargazers_count":19,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T09:49:18.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markshust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-05T05:13:13.000Z","updated_at":"2018-12-11T20:17:29.000Z","dependencies_parsed_at":"2023-05-17T08:46:31.807Z","dependency_job_id":null,"html_url":"https://github.com/markshust/meteor-material-ui","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fmeteor-material-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fmeteor-material-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fmeteor-material-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fmeteor-material-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markshust","download_url":"https://codeload.github.com/markshust/meteor-material-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248347436,"owners_count":21088653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T04:40:44.928Z","updated_at":"2025-04-11T05:31:28.513Z","avatar_url":"https://github.com/markshust.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markoshust:material-ui\n\n## Add Google's Material Design Library to Meteor\n\n`meteor add markoshust:material-ui`\n\nPulls library from the official React implementation of Google Material Design at \u003ca href=\"https://www.npmjs.com/package/material-ui\" target=\"_blank\"\u003e`material-ui` NPM repo\u003c/a\u003e and uses Meteor's built-in `react` package. Also, automatically runs `injectTapEventPlugin()` at startup. This package also exposes material-ui to the server for SSR support.\n\n## Usage\n\nCreate a component, and import desired components using the following format:\n\n```\nconst { AppBar, IconButton, IconMenu, LeftNav } = mui;\nconst { MenuItem } = mui.Menus;\nconst { NavigationMoreVert } = mui.SvgIcons;\nconst Styles = mui.Styles;\nconst Colors = Styles.Colors;\n\nApp = React.createClass({\n  childContextTypes : {\n    muiTheme: React.PropTypes.object\n  },\n\n  getInitialState() {\n    return {\n      open: false\n    };\n  },\n\n  getChildContext() {\n    return {\n      muiTheme: Styles.ThemeManager.getMuiTheme(Styles.LightRawTheme)\n    };\n  },\n\n  handleToggle() {\n    this.setState({open: ! this.state.open});\n  },\n\n  render() {\n    return (\n      \u003cdiv className=\"app\"\u003e\n        \u003cLeftNav\n          docked={false}\n          open={this.state.open}\n          onRequestChange={open =\u003e this.setState({open})}\n        \u003e\n          \u003cMenuItem linkButton={true} href=\"/home\" primaryText=\"Home\" index={1} onTouchTap={this.handleToggle}/\u003e\n          \u003cMenuItem linkButton={true} href=\"/feature\" primaryText=\"Feature\" index={2} onTouchTap={this.handleToggle}/\u003e\n          \u003cMenuItem linkButton={true} href=\"/contact\" primaryText=\"Contact\" index={3} onTouchTap={this.handleToggle}/\u003e\n        \u003c/LeftNav\u003e\n        \u003cAppBar\n          title=\"Home\"\n          onLeftIconButtonTouchTap={this.handleToggle}\n          style={{backgroundColor: Colors.deepOrange300}}\n          iconElementRight={\n            \u003cIconMenu\n              iconButtonElement={\n                \u003cIconButton\u003e\n                  \u003cNavigationMoreVert /\u003e\n                \u003c/IconButton\u003e\n              }\n            \u003e\n              \u003cMenuItem primaryText=\"Help\" index={1} /\u003e\n              \u003cMenuItem primaryText=\"Sign out\" index={2} /\u003e\n            \u003c/IconMenu\u003e\n          }\n        /\u003e\n      \u003c/div\u003e\n    );\n  }\n});\n\nMeteor.startup(() =\u003e {\n  ReactDOM.render(\u003cApp /\u003e, document.getElementById('app'));\n});\n```\n\n## Documentation\n\nSee the \u003ca href=\"http://material-ui.com/#/\" target=\"_blank\"\u003eReact Material-UI\u003c/a\u003e site for more details on how you can use components.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fmeteor-material-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkshust%2Fmeteor-material-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fmeteor-material-ui/lists"}