# setChecked

Sets the checkbox state to a boolean or mixed value.

## Signatures

```ts
export declare function setChecked<E, R>(state: RefSubject.RefSubject<State, E, R>, checked: Checked): Effect.Effect<State, E, R>;
```



## Examples

```ts
import { Effect } from "effect"
import * as Checkbox from "@typed/ui/Checkbox"

const program = Effect.gen(function* () {
  const state = yield* Checkbox.makeState()
  yield* Checkbox.setChecked(state, true)
})
```
