Skip to content

Commit

Permalink
docs: step input component into patterns (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbadan committed Mar 6, 2020
1 parent 0d2c34a commit 8217502
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_data/sidebars/left-navigation-sidebar.yml
Expand Up @@ -66,6 +66,10 @@ entries:
url: /patterns/search-input.html
output: web

- title: Step Input
url: /patterns/step-input.html
output: web

- title: Time Picker
url: /patterns/time-picker.html
output: web
Expand Down
Binary file added docs/images/component-visual/step-input.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/pages/patterns/step-input.md
@@ -0,0 +1,34 @@
---
title: Step Input
id: step-input
keywords: step input
sidebar: left-navigation-sidebar
toc: false
permalink: patterns/step-input.html
folder: patterns
summary:
---

The Step Input component is an opinionated composition of the InputGroup, Button and FormInput compponents.
It is typically used to enter numbers.The value can be increased or reduced with the provided controls.
{: .docs-intro}

{% capture default %}

<div class="fd-form-group">
<label class="fd-form-label">Step Input</label>
<div class="fd-form-item">
<div class="fd-input-group--control fd-input-group">
<span class="fd-input-group__addon fd-input-group__addon--button">
<button aria-label="Step down" class="fd-button fd-button--transparent fd-button--standard sap-icon--less fd-input-group__button" onclick="stepInputValue('step-1', 'down');" type="button"></button>
</span>
<input class="fd-input fd-input-group__input" id="step-1" type="text" value="0">
<span class="fd-input-group__addon fd-input-group__addon--button">
<button aria-label="Step up" class="fd-button fd-button--transparent fd-button--standard sap-icon--add fd-input-group__button" onclick="stepInputValue('step-1', 'up');" type="button"></button>
</span>
</div>
</div>
</div>

{% endcapture %}
{% include display-component.html component=default %}

0 comments on commit 8217502

Please sign in to comment.