# ui: Add \`NumericStepper\` component \(\#13954\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9e36a66fecae2cd6894a7f2ca21dbb82b95892b2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9e36a66fecae2cd6894a7f2ca21dbb82b95892b2

Requested commit: 9e36a66fecae2cd6894a7f2ca21dbb82b95892b2

Commit: 9e36a66fecae2cd6894a7f2ca21dbb82b95892b2

Tree: cc2440ab9f6ddb7364669d994c09794d4f274421

Author: Marshall Bowers

Committer: GitHub

## Message

```
ui: Add `NumericStepper` component (#13954)

This PR adds a `NumericStepper` component that can be used to display a
numeric value along with controls to increment, decrement, and reset the
value.

The `ApplicationMenu` has been updated to use the `NumericStepper` for
adjusting the buffer and UI font size.

Here it is in action:


https://github.com/zed-industries/zed/assets/1486634/03cffe67-1256-4283-aa3d-560fffa06dad

Note: Due to the way we do font adjustments, once modified the reset
button will be displayed until it is clicked (or the font size
adjustment is otherwise reset). Simply returning to the original value
will currently not hide the reset button.

Release Notes:

- N/A
```

## Parents

- [97f315356db3491fc332d6308855df92a97c2d92](https://git.cafe/gitcafe/zed/commit/97f315356db3491fc332d6308855df92a97c2d92?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9e36a66fecae2cd6894a7f2ca21dbb82b95892b2?format=markdown)
