1.3.2 • Published 2 years ago

@stephane1920/ts-dropdown-react v1.3.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago