Skip to content

Commit 7141fb0

Browse files
author
Lesley
committed
docs: Add options to playground
1 parent 657efcf commit 7141fb0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/src/stories/Options/index.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class WithOptions extends PureComponent {
2020
disabled: false,
2121
readOnly: false,
2222
hierarchical: false,
23-
placeholderText: 'Choose...',
24-
inlinePlaceholderText: 'Search...',
23+
placeholder: 'Choose...',
24+
inlineSearchPlaceholder: 'Search...',
2525
}
2626
}
2727

@@ -50,8 +50,8 @@ class WithOptions extends PureComponent {
5050
readOnly,
5151
showDropdown,
5252
inlineSearchInput,
53-
placeholderText,
54-
inlinePlaceholderText,
53+
placeholder,
54+
inlineSearchPlaceholder,
5555
} = this.state
5656

5757
return (
@@ -88,19 +88,21 @@ class WithOptions extends PureComponent {
8888
</select>
8989
</div>
9090
<div style={{ marginBottom: '10px' }}>
91-
<label htmlFor="placeholderText">Placeholder text: </label>
91+
<label htmlFor="placeholder">Placeholder text: </label>
9292
<input
93-
id="placeholderText"
94-
value={placeholderText}
95-
onChange={e => this.setState({ placeholderText: e.target.value })}
93+
id="placeholder"
94+
type="text"
95+
value={placeholder}
96+
onChange={e => this.setState({ placeholder: e.target.value })}
9697
/>
9798
</div>
9899
<div style={{ marginBottom: '10px' }}>
99100
<label htmlFor="inlinePlaceholderText">Inline placeholder text: </label>
100101
<input
101-
id="inlinePlaceholderText"
102-
value={inlinePlaceholderText}
103-
onChange={e => this.setState({ inlinePlaceholderText: e.target.value })}
102+
id="inlineSearchPlaceholder"
103+
type="text"
104+
value={inlineSearchPlaceholder}
105+
onChange={e => this.setState({ inlineSearchPlaceholder: e.target.value })}
104106
/>
105107
</div>
106108
<Checkbox
@@ -150,11 +152,9 @@ class WithOptions extends PureComponent {
150152
showPartiallySelected={showPartiallySelected}
151153
disabled={disabled}
152154
readOnly={readOnly}
153-
placeholder={placeholderText}
154-
inlineSearchPlaceholder={inlinePlaceholderText}
155155
inlineSearchInput={inlineSearchInput}
156156
showDropdown={showDropdown}
157-
texts={{ label: 'Demo Dropdown' }}
157+
texts={{ label: 'Demo Dropdown', placeholder, inlineSearchPlaceholder }}
158158
/>
159159
</div>
160160
</div>

0 commit comments

Comments
 (0)