Semantic-UI-React icon indicating copy to clipboard operation
Semantic-UI-React copied to clipboard

How to expand the horizontal width size of Input ?

Open khanhtrannnn opened this issue 8 years ago • 1 comments

Hi all I'm working with Reactjs project, and I use Semantic UI React to beautify the Input. However, it seems that Input is always showed in default size. How can I resize its width ?

  • I follow the instruction on Semantic UI React Home page, I put this line of code to Html: <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.12/semantic.min.css"></link>
  • In js file I import: import { Input } from 'semantic-ui-react'; and render the input: <Input value={this.state.firstName} onChange={this.handleInputFirstName}/>

khanhtrannnn avatar Jan 15 '18 04:01 khanhtrannnn

just add <Input value={this.state.firstName} onChange={this.handleInputFirstName} style={{ width: "500px" }}/>

keikeigd avatar Jan 15 '18 05:01 keikeigd