-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(inline-select): Add inline-select component (#98)
- Loading branch information
1 parent
d37fc06
commit 6197fda
Showing
2 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="bx--form-item"> | ||
<div class="bx--select bx--select--inline"> | ||
<label for="select-id" class="bx--label">Select label</label> | ||
<select id="select-id" class="bx--select-input"> | ||
<option class="bx--select-option" disabled selected hidden>Pick an option</option> | ||
<option class="bx--select-option" value="solong">A much longer option that is worth having around to check how text flows</option> | ||
<optgroup class="bx--select-optgroup" label="Category 1"> | ||
<option class="bx--select-option" value="option1">Option 1</option> | ||
<option class="bx--select-option" value="option2">Option 2</option> | ||
</optgroup> | ||
<optgroup class="bx--select-optgroup" label="Category 2"> | ||
<option class="bx--select-option" value="option1">Option 1</option> | ||
<option class="bx--select-option" value="option2">Option 2</option> | ||
</optgroup> | ||
</select> | ||
<svg class="bx--select__arrow"> | ||
<use xlink:href="/carbon-icons/bluemix-icons.svg#icon--caret--down"></use> | ||
</svg> | ||
</div> | ||
</div> |