Skip to content

georgeneil/react-typescript-selectbox

Repository files navigation

React Select-Box using Typescript

This is a react based select-box component developed using Typescript.

Snapshot

Snapshot of SelectBoxes

Features

  • 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;
};

Usage

Basic:

<SelectBox
  label="Development Status ?"
  value={2}
>
    <MenuItem itemValue={1} primaryText="Completed" />
    <MenuItem itemValue={2} primaryText="Active" />
    <MenuItem itemValue={3} primaryText="Deprecated" />
</SelectBox>

Related Projects

React TypeScript Checkbox

To install dependencies

npm install

To run in development mode

npm start

To build the pages

npm run build

Contributing

Contributions are always welcome. Just send a pull request. Feel free to contact me GitHub.

License

MIT License