-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Range input and allow for custom prop for select and range …
…input (#5034) * #3047 add range and custom range input and custom prop for selects #3047 add range and custom range input and custom prop for selects * #3047 update FormControlSpec.js #3047 Add tests * #3047 update docs * Update FormControl.js clean up leftover commented code * #3047 simplify custom error check * Update FormControl.js Re-add removed @types * #3047 add types for custom * Update src/FormControl.js Co-Authored-By: Jimmy Jia <tesrin@gmail.com> * Update src/FormControl.js Co-Authored-By: Jason Quense <monastic.panic@gmail.com> Co-authored-by: Tor Raswill <tor.raswill@dqc.se> Co-authored-by: Jimmy Jia <tesrin@gmail.com> Co-authored-by: Jason Quense <monastic.panic@gmail.com>
- Loading branch information
1 parent
8856820
commit d000274
Showing
8 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Form> | ||
<Form.Group controlId="formBasicRange"> | ||
<Form.Label>Range</Form.Label> | ||
<Form.Control type="range" /> | ||
</Form.Group> | ||
</Form>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Form> | ||
<Form.Group controlId="formBasicRangeCustom"> | ||
<Form.Label>Range</Form.Label> | ||
<Form.Control type="range" custom /> | ||
</Form.Group> | ||
</Form>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Form> | ||
<Form.Group controlId="exampleForm.SelectCustom"> | ||
<Form.Label>Custom select</Form.Label> | ||
<Form.Control as="select" custom> | ||
<option>1</option> | ||
<option>2</option> | ||
<option>3</option> | ||
<option>4</option> | ||
<option>5</option> | ||
</Form.Control> | ||
</Form.Group> | ||
</Form>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Form> | ||
<Form.Group controlId="exampleForm.SelectCustomSizeSm"> | ||
<Form.Label>Custom select Small</Form.Label> | ||
<Form.Control as="select" size="sm" custom> | ||
<option>1</option> | ||
<option>2</option> | ||
<option>3</option> | ||
<option>4</option> | ||
<option>5</option> | ||
</Form.Control> | ||
</Form.Group> | ||
<Form.Group controlId="exampleForm.SelectCustomSizeLg"> | ||
<Form.Label>Custom select Large</Form.Label> | ||
<Form.Control as="select" size="lg" custom> | ||
<option>1</option> | ||
<option>2</option> | ||
<option>3</option> | ||
<option>4</option> | ||
<option>5</option> | ||
</Form.Control> | ||
</Form.Group> | ||
</Form>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters