creativetimofficial / light-bootstrap-dashboard-react

React version of Light Bootstrap Dashboard
MIT License
749 stars 1.04k forks source link

Form drop down #65

Closed rafaeloliveira-ipb closed 4 years ago

rafaeloliveira-ipb commented 4 years ago

Hello i'm not sure if im in the right place, but how can I use the select input in the forms? I look in the react-boostrap and I tried to use the 'option' and 'select' in the type but is not working.

einazare commented 4 years ago

Hello there, @a35096 ,

Here is a sample code for your need:

  <FormGroup>
    <ControlLabel>Hey</ControlLabel>
    <FormControl componentClass="select">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
    </FormControl>
  </FormGroup>

Best, Manu