# Add \`CheckboxWithLabel\` component \(\#7881\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ef551cedef35fc8847c6ea612a2d85a65ea8030c

Requested commit: ef551cedef35fc8847c6ea612a2d85a65ea8030c

Commit: ef551cedef35fc8847c6ea612a2d85a65ea8030c

Tree: ca0795c4bb3689c978e4521f7b4188de87a13391

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `CheckboxWithLabel` component (#7881)

This PR builds on top of #7878 by adding a general-purpose
`CheckboxWithLabel` component to use for checkboxes that have attached
labels.

This component encompasses the functionality of allowing to click on the
label to toggle the value of the checkbox.

There was only one other occurrence of a checkbox with a label—the
"Public" checkbox in the channel management modal—and this has been
updated to use `CheckboxWithLabel`.

Resolves #7794.

Release Notes:

- Added support for clicking the label of the "Public" checkbox in the
channel management modal to toggle the value
([#7794](https://github.com/zed-industries/zed/issues/7794)).
```

## Parents

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

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