[Pomeranian development reference](/reference/development/index.md) / [lib-essential/src/checkbox](/reference/development/lib-essential/src/checkbox/index.md) / [Checkbox](/reference/development/lib-essential/src/checkbox/classes/Checkbox.md) / with

# Method: with()

> `static` **with**\<`C`, `Added`\>(`this`, ...`capabilities`): `Compose`\<`C`, `Added`\>

Defined in: packages/core/dist/page-object.d.ts:45

Apply capabilities left to right through genuine subclass construction.
Each factory receives the preceding constructor; the receiver stays unchanged.
Name the returned class before using create or rootFixture.

## Type Parameters

### C

`C` *extends* `Constructor`\<`PageObject`\<`UnboundRoot`\>\>

### Added

`Added` *extends* readonly `unknown`[]

## Parameters

### this

`C`

### capabilities

...`Capabilities`\<`C`, `Added`\>

## Returns

`Compose`\<`C`, `Added`\>

## Since

Available since @pomeranian/core@Unreleased

## Inherited from

`Element.with( CheckableUncheckable, ).with`


## Context

Owner: [Checkbox](/reference/development/lib-essential/src/checkbox/classes/Checkbox.md).

## Owner type parameters

### Root

`Root` *extends* `UnboundRoot` = `UnboundRoot`


> **Unreleased @pomeranian/lib-essential API:** @pomeranian/lib-essential implementation from main; no npm release is implied.
