New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-elements-gu

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-elements-gu

>

npmnpm
Version
1.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

react-elements-gu

NPM JavaScript Style Guide

Image

Install

npm install --save react-elements-gu

Usage

import React, { Component } from 'react'

import Selector from 'react-elements-gu'

export default class App extends Component {
  render () {
    const theme = {
      palette: {
        primary: {
          main: '#FAF33E'
        }
      },
      listItems: {
        ...
      },
      addNewItem: {
        ...
      },
      addNewItemIcon: {
        ...
      },
      listContainer: {
        ...
      },
      textField: {
        ...
      },
      dropDownIcon: {
        ...
      },
    }
    
    const items = [
      {
        key: '2',
        name: 'HJD'
      },
      {
        key: '3',
        name: 'JJD'
      },
      {
        key: '4',
        name: 'OPD'
      },
      {
        key: '5',
        name: 'OKLPD'
      }
    ]
    const handleTextChange = (e) => {
      console.log("InText",e.target.value)
       // Do something here
    }
    const handleAddNewItem = () => {
      console.log("Hello there");
      // Do something here
    }
    const onItemSelected = (e) => {
      console.log(e.target..getAttribute('value'));
      // Do something here
    }
    return (
      <div>
        <Selector
            onChange={handleTextChange}
            name="Name"
            label="Name"
            items={items}
            addNewItem={true}
            addNewItemCaption={"Add new Category"}
            theme={theme}
            onAddNewItem={handleAddNewItem}
            onItemSelected={onItemSelected}
        />
      </div>
    )
  }
}

License

MIT © [Rukundo eric prestein](https://github.com/Rukundo eric prestein)

FAQs

Package last updated on 19 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts