Skip to content

Commit

Permalink
docs(badges): Add badge for sublabel
Browse files Browse the repository at this point in the history
Gearing up for v0.24.0 release.
  • Loading branch information
ryanoglesby08 committed Oct 10, 2017
1 parent 73f1cbf commit dca1f31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Input/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ Input.propTypes = {
label: PropTypes.string.isRequired,
/**
* Clarify attributes of the expected input.
*
* @since v0.24.0
*/
sublabel: PropTypes.string,
/**
Expand Down
2 changes: 2 additions & 0 deletions src/components/Input/Input.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ const validate = (event) => {
Use a `sublabel` to clarify attributes of the expected input. It is a more usable and accessible option than the
HTML `placeholder` attribute.

<span class="docs--badge__new">new!</span> <span class="docs--badge__version">v0.24.0</span>

```
<Input label="Transit number" sublabel="5 digits" type="number" />
```
Expand Down

0 comments on commit dca1f31

Please sign in to comment.