feat(reactstrap): Added range to list of allowable CustomInput types (#37723)

This commit is contained in:
kyletsang
2019-08-19 10:33:10 -07:00
committed by Sheetal Nandi
parent 6935049547
commit 7afa2627eb
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ export type CustomInputType =
| 'file'
| 'radio'
| 'checkbox'
| 'switch';
| 'switch'
| 'range';
export interface CustomInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
[key: string]: any;
+4
View File
@@ -4325,6 +4325,10 @@ class Example119 extends React.Component<any, any> {
<option>Value 5</option>
</CustomInput>
</FormGroup>
<FormGroup>
<Label for="exampleCustomRange">Custom Range</Label>
<CustomInput type="range" id="exampleCustomRange" name="customRange" />
</FormGroup>
<FormGroup>
<Label for="exampleCustomFileBrowser">File Browser</Label>
<CustomInput type="file" id="exampleCustomFileBrowser" name="customFile" />