{"id":21942060,"url":"https://github.com/richardzcode/of-simplify-react","last_synced_at":"2025-08-02T03:09:53.911Z","repository":{"id":57313644,"uuid":"140762870","full_name":"richardzcode/of-simplify-react","owner":"richardzcode","description":"Easy to use React components extend Office UI Fabric","archived":false,"fork":false,"pushed_at":"2018-08-01T20:40:17.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T00:57:21.472Z","etag":null,"topics":["office-ui-fabric","office365","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richardzcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-12T20:42:47.000Z","updated_at":"2018-08-01T20:40:18.000Z","dependencies_parsed_at":"2022-09-20T23:10:26.835Z","dependency_job_id":null,"html_url":"https://github.com/richardzcode/of-simplify-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/richardzcode/of-simplify-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fof-simplify-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fof-simplify-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fof-simplify-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fof-simplify-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardzcode","download_url":"https://codeload.github.com/richardzcode/of-simplify-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fof-simplify-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268330912,"owners_count":24233151,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["office-ui-fabric","office365","react"],"created_at":"2024-11-29T03:16:22.472Z","updated_at":"2025-08-02T03:09:53.878Z","avatar_url":"https://github.com/richardzcode.png","language":"JavaScript","readme":"# of-simplify-react\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![npm version](https://badge.fury.io/js/of-simplify-react.svg)](https://badge.fury.io/js/of-simplify-react)\n[![npm downloads](https://img.shields.io/npm/dm/of-simplify-react.svg)](https://www.npmjs.com/package/of-simplify-react)\n[![GitHub last commit](https://img.shields.io/github/last-commit/richardzcode/of-simplify-react.svg)]()\n\nEasy to use React components extend [Office UI Fabric](https://github.com/OfficeDev/office-ui-fabric-react)\n\n## Install\n\n```\nnpm install of-simplify-react\n```\n\n## Components\n\n- [CommandBar](#commandbar)\n- [AutoComplete](#autocomplete)\n\n### CommandBar\n\n- Write `CommandBarItem` like React component.\n- Style `CommandBar` and `CommandBarItem` like React component.\n- Handle `onCommand` event to reduce repetitive code.\n\n```\nimport React, { Component } from 'react';\nimport OfSimplify, { CommandBar, CommandBarItem } from 'of-simplify-react';\n\nOfSimplify.initializeIcons(); // in order to show icons\n\nclass App extends Component {\n  constructor(props) {\n    super(props);\n    this.handleCommand = this.handleCommand.bind(this);\n  }\n\n  handleCommand(key) {\n    console.log('menu item clicked: ' + key);\n  }\n\n  render() {\n    \u003cCommandBar onCommand={this.handleCommand} style={{ padding: '0.5em', display: 'flex', alignItems: 'flex-end' }}\u003e\n      \u003cCommandBarItem key=\"home\" icon=\"Home\" style={{ icon: { fontWeight: 'bold' } }}  checked\u003eHome\u003c/CommandBarItem\u003e\n      \u003cCommandBarItem key=\"cat\" icon=\"Cat\"\u003eCat\u003c/CommandBarItem\u003e\n      \u003cCommandBarItem key=\"coffee\" icon=\"CoffeeScript\"\u003eCoffee\u003c/CommandBarItem\u003e\n\n      \u003cCommandBarItem key=\"preferences\" overflow\u003ePreferences\u003c/CommandBarItem\u003e\n\n      \u003cCommandBarItem key=\"signOut\" icon=\"SignOut\" style={{ textDecoration: 'underline' }} far\u003eSign Out\u003c/CommandBarItem\u003e\n    \u003c/CommandBar\u003e\n  }\n}\n\nexport default App;\n```\n\n### AutoComplete\n\n- Simple auto-complete component combines `TextField` and `List`\n\n```\nimport React, { Component } from 'react';\nimport { AutoComplete } from 'of-simplify-react';\n\nconst directors = [\n  { name: 'John Thompson' },\n  { name: 'Bradford Smith' },\n  { name: 'Satya Nadella' },\n  { name: 'William Gates' },\n  { name: 'Amy Hood' },\n  { name: 'Christopher Caposseia' },\n  { name: 'Kathleen Hogan' },\n  { name: 'Jean-Philippe Courtois' },\n  { name: 'Margaret Johnson' },\n  { name: 'Kevin Scott' },\n  { name: 'Sean Ventura' },\n  { name: 'Reid Hoffman' },\n  { name: 'Hugh Johnston' },\n  { name: 'Teri List-Stoll' },\n  { name: 'Charles Noski' },\n  { name: 'Helmut Panke' },\n  { name: 'Sandra Peterson' },\n  { name: 'Charles Scharf' },\n  { name: 'John Stanton' },\n  { name: 'Padmasree Warrior' }\n];\n\nconst autoCompleteSearch= function(directors, q) {\n  q = q.toLowerCase();\n  return directors.filter(director =\u003e director.name.toLowerCase().match(q))\n}\n\nclass App extends Component {\n  constructor(props) {\n    super(props);\n\n    this.handleChange = this.handleChange.bind(this);\n  }\n\n  handleChange(val) {\n    console.log('selected ' + val);\n  }\n\n  autoCompleteRenderCell(director, style) {\n    return \u003cdiv style={style.name}\u003edirector.name\u003c/div\u003e\n  }\n\n  render() {\n    const style = {\n      list: {\n        marginLeft: '5em',\n        item: { name: { color: 'blue' } }\n      }\n    }\n\n    \u003cAutoComplete\n      prefix=\"Search Board\"\n      data={directors}\n      value=\"\"\n      style={style}\n      autoCompleteValue={director =\u003e director.name}\n      autoCompleteSearch={autoCompleteSearch}\n      autoCompleteRenderCell={this.autoCompleteRenderCell}\n      onChange={this.handleChange}\n      underlined\n    /\u003e\n  }\n}\n\nexport default App;\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardzcode%2Fof-simplify-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardzcode%2Fof-simplify-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardzcode%2Fof-simplify-react/lists"}