lycant-library

1.0.1 • Public • Published

lycant-library

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save lycant-library

Usage

import React, { Component } from 'react'

import DropdownComponent from 'lycant-library'
import 'lycant-library/dist/index.css'

const App = () => {
  return (
    <DropdownComponent
      selectName='departments'
      defaultValue='select a department...'
      options={departments}
      label=''
      selectStyle={{}}
      wrapperStyle={{}}
    />
  )
}

export default App

Props

Common props you may want to specify include:

Is required

options: data displayed in dropdown.

Is Not required

  • label: to specify the type of data above the dropdown
  • defaultValue: the value displayed by default, to specify the type of data if you don't want a label no label
  • selectName: to specify the name and id of select, to allow you to add CSS and link your label with an htmlFor
  • selectStyle: to add style to dropdown selects
  • wrapperStyle: to add style to the div of dropdown

License

MIT © mayccos

Readme

Keywords

none

Package Sidebar

Install

npm i lycant-library

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

247 kB

Total Files

9

Last publish

Collaborators

  • mayccos