1.0.0 • Published 4 years ago

@feizheng/react-searchlight v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-searchlight

Searchlight for react.

version license size download

installation

npm install -S @feizheng/react-searchlight

update

npm update @feizheng/react-searchlight

properties

NameTypeRequiredDefaultDescription
classNamestringfalse-The extended className for component.
optionsobjectfalse-The default options for react-draggable.

usage

  1. import css

    @import "~@feizheng/react-searchlight/dist/style.scss";
    
    // customize your styles:
    $react-searchlight-options: ()
  2. import js

    import ReactDemokit from '@feizheng/react-demokit';
    import React from 'react';
    import ReactDOM from 'react-dom';
    import ReactSearchlight from '@feizheng/react-searchlight';
    import './assets/style.scss';
    
    class App extends React.Component {
      render() {
        return (
          <ReactDemokit
            className="p-3 app-container"
            url="https://github.com/afeiship/react-searchlight">
            <h1 className="text-center mb-5 text-white text-2xl">
              Searchlight for react.
            </h1>
            <iframe width="100%" src="https://m.baidu.com"></iframe>
            <ReactSearchlight />
          </ReactDemokit>
        );
      }
    }
    
    ReactDOM.render(<App />, document.getElementById('app'));

documentation

license

Code released under the MIT license.

1.0.0

4 years ago