1.3.2 • Published 3 years ago

@stephane1920/ts-dropdown-react v1.3.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Dropdown menu.

made-with-node made-with-react made-with-sass GitHub repo size GitHub jest

A simple customizable react dropdown in typescript.
From project 14 OpenClassrooms, react app developer

Projet 14 Openclassroms
Demo

Installation

npm install @stephane1920/ts-dropdown-react
or
yarn add @stephane1920/ts-dropdown-react

Usage

import React from 'react';
import ReactDOM from 'react-dom/client';
import Dropdown from '@stephane1920/ts-dropdown-react';

const SomeComponent = () => {
  return (
    <div>
      <Dropdown 
        label='choicies'
        name='input-name'
        choicies={['option1','option2','option3','option4','option5']}
      />
    </div>
  )
};

Props

LabelTypeRequiredDefault
labelstringYesN/A
namestringYesN/A
zIndexnumberNo1
choiciesstring YesN/A
errorbooleanNofalse
valuestringNo''
textColorstringNo'#70757A'
focusColorstringNo'#059ECE'
errorColorstringNo'#EF6C6C'
borderColorstringNo'#DADCE0'
borderRadiusstringNo'5px'
onSelectcallback()NoN/A

License

ISC

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago