plurall-dropdown

Plurall Dropdown Component

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
plurall-dropdown
3.4.472 years ago7 years agoMinified + gzip package size for plurall-dropdown in KB

Readme

plurall-dropdown
Plurall Dropdown Component

Installation

$ npm install plurall-dropdown

Usage

import React from 'react';
import { Dropdown } from 'plurall-dropdown';

const DISCIPLINAS = [
  { label: 'Todas as Disciplinas', value: '' },
  { label: 'Matemática', value: 'matematica' },
  { label: 'Geografia', value: 'geografia' },
  { label: 'Português', value: 'portugues' },
  { label: 'História', value: 'historia' },
  { label: 'Ciencias', value: 'ciencias' }
];

const Dropdown = () => (
    <Dropdown
      onClick={(value) => console.log(value)} // key value selected
      list={DISCIPLINAS}
    />
);

export default Dropdown;