This is a react based select-box component developed using Typescript.
- Pass the Label Value
- Pass the Default Value
- Down-Arrow Icon
- Separation as an Underline
- Drop-down Menu, Menu Item
- Floating Effect for Label
- Option's change handler
- Disable Mode
- Auto Width
- Scrollable Select Menu
- Secondary description for selected Menu Item
interface Props extends React.Props<SelectBox> {
label : string;
value: number;
};
<SelectBox
label="Development Status ?"
value={2}
>
<MenuItem itemValue={1} primaryText="Completed" />
<MenuItem itemValue={2} primaryText="Active" />
<MenuItem itemValue={3} primaryText="Deprecated" />
</SelectBox>
npm install
npm start
npm run build
Contributions are always welcome. Just send a pull request. Feel free to contact me GitHub.
MIT License