Skip to content

UICheckbox

Defined in: ui/src/UICheckbox.ts:27

Interactive checkbox with optional label.

new UICheckbox(props): UICheckbox

Defined in: ui/src/UICheckbox.ts:56

UICheckboxProps

UICheckbox

UIElementBase.constructor

readonly _transform: ElementTransform

Defined in: ui/src/UIElementBase.ts:20

Internal

UIElementBase._transform


readonly container: DisplayContainer

Defined in: ui/src/UICheckbox.ts:28


readonly yogaNode: Node

Defined in: ui/src/UICheckbox.ts:29

UIElementBase.yogaNode

get checked(): boolean

Defined in: ui/src/UICheckbox.ts:211

boolean


get disabled(): boolean

Defined in: ui/src/UICheckbox.ts:216

Whether the checkbox refuses the pointer and a confirm press.

boolean


get displayObject(): DisplayContainer

Defined in: ui/src/UICheckbox.ts:31

DisplayContainer

UIElementBase.displayObject


get focusable(): boolean

Defined in: ui/src/UICheckbox.ts:226

Whether the checkbox takes part in focus navigation.

boolean


get focused(): boolean

Defined in: ui/src/UICheckbox.ts:221

Whether the checkbox holds focus in the scope that owns it.

boolean


get rotation(): number

Defined in: ui/src/UIElementBase.ts:50

See LayoutProps.rotation.

number

set rotation(value): void

Defined in: ui/src/UIElementBase.ts:54

number

void

UIElementBase.rotation


get scale(): Readonly<{ x: number; y: number; }>

Defined in: ui/src/UIElementBase.ts:41

See LayoutProps.scale.

Readonly<{ x: number; y: number; }>

set scale(value): void

Defined in: ui/src/UIElementBase.ts:45

number | { x: number; y: number; }

void

UIElementBase.scale


get transformOrigin(): Readonly<{ x: number; y: number; }>

Defined in: ui/src/UIElementBase.ts:32

See LayoutProps.transformOrigin.

Readonly<{ x: number; y: number; }>

set transformOrigin(value): void

Defined in: ui/src/UIElementBase.ts:36

number | { x: number; y: number; }

void

UIElementBase.transformOrigin


get visible(): boolean

Defined in: ui/src/UICheckbox.ts:202

boolean

set visible(v): void

Defined in: ui/src/UICheckbox.ts:206

boolean

void

UIElementBase.visible


get zIndex(): number

Defined in: ui/src/UIElementBase.ts:59

See LayoutProps.zIndex.

number

set zIndex(value): void

Defined in: ui/src/UIElementBase.ts:63

number

void

UIElementBase.zIndex

_inspectState(): object

Defined in: ui/src/UICheckbox.ts:321

Internal

object

checked: boolean

disabled: boolean

focusable: boolean

focused: boolean

pressed: boolean


activate(): void

Defined in: ui/src/UICheckbox.ts:178

Toggle the box and fire onChange. The click path and the focus scope’s confirm both come through here. update({ checked }) sets the value silently.

void


applyLayout(): void

Defined in: ui/src/UICheckbox.ts:190

Follow the box layout gave this row, which is what the outline rings.

void


protected applyTransformProps(props): void

Defined in: ui/src/UIElementBase.ts:27

Apply the four transform props present in props. A present key holding undefined resets that prop to its default. Throws before writing anything if a value is not finite.

LayoutProps

void

UIElementBase.applyTransformProps


destroy(): void

Defined in: ui/src/UICheckbox.ts:338

Idempotent — a second call is a no-op.

void

UIElementBase.destroy


setDisabled(v): void

Defined in: ui/src/UICheckbox.ts:230

boolean

void


update(p): void

Defined in: ui/src/UICheckbox.ts:245

Partial<UICheckboxProps>

void

UIElementBase.update

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/ui.md.