Skip to content

Commit

Permalink
Add property for input class name.
Browse files Browse the repository at this point in the history
  • Loading branch information
prattl committed Dec 17, 2015
1 parent 694dd29 commit c43b91a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -65,6 +65,12 @@ Default: `''`

Add an additional class to the geosuggest container.

#### inputClassName
Type: `String`
Default: `''`

Add an additional class to the input.

#### disabled
Type: `Boolean`
Default: `false`
Expand Down
3 changes: 2 additions & 1 deletion src/Geosuggest.jsx
Expand Up @@ -15,6 +15,7 @@ const Geosuggest = React.createClass({
placeholder: 'Search places',
disabled: false,
className: '',
inputClassName: '',
location: null,
radius: null,
bounds: null,
Expand Down Expand Up @@ -341,7 +342,7 @@ const Geosuggest = React.createClass({
<div className={'geosuggest ' + this.props.className}
onClick={this.onClick}>
<input
className="geosuggest__input"
className={'geosuggest__input ' + this.props.inputClassName}
ref="geosuggestInput"
type="text"
value={this.state.userInput}
Expand Down

0 comments on commit c43b91a

Please sign in to comment.