plurall-dropdown

3.4.48 • Public • Published

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;

Readme

Keywords

none

Package Sidebar

Install

npm i plurall-dropdown

Weekly Downloads

345

Version

3.4.48

License

ISC

Unpacked Size

17.8 kB

Total Files

9

Last publish

Collaborators

  • plurall-dev