# Add \`ToggleButton\` for use in buffer search \(\#3746\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d61cac6160df66a6234c1cd6c69d6d39963f0e6c

Requested commit: d61cac6160df66a6234c1cd6c69d6d39963f0e6c

Commit: d61cac6160df66a6234c1cd6c69d6d39963f0e6c

Tree: 6c6a2c4e0d191547b3129983a36bd26a88224e78

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `ToggleButton` for use in buffer search (#3746)

This PR adds a new `ToggleButton` component:

<img width="738" alt="Screenshot 2023-12-20 at 6 50 13 PM"
src="https://github.com/zed-industries/zed/assets/1486634/9c5fb45b-0b55-4008-9336-b651a26a99ad">

We're using `ToggleButton`s for the search mode selection in the buffer
search:

<img width="842" alt="Screenshot 2023-12-20 at 6 47 57 PM"
src="https://github.com/zed-industries/zed/assets/1486634/178a278f-172c-4c67-8572-83d59de2ed14">

Release Notes:

- N/A
```

## Parents

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

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

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