Skip to main content

ButtonProps

SteamClientHomebrewSDK v1.0.0


SteamClientHomebrewSDK / client/src / ButtonProps

Interface: ButtonProps

Defined in: typescript-packages/client/src/components/Button.ts:5

Extends

Properties

actionDescriptionMap?

optional actionDescriptionMap: ActionDescriptionMap;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:51

Inherited from

DialogButtonProps.actionDescriptionMap


children?

optional children: ReactNode;

Defined in: typescript-packages/client/src/components/Dialog.ts:9

Inherited from

DialogButtonProps.children


className?

optional className: string;

Defined in: typescript-packages/client/src/components/Dialog.ts:8

Inherited from

DialogButtonProps.className


disabled?

optional disabled: boolean;

Defined in: typescript-packages/client/src/components/Dialog.ts:28

Disables the button - assigned on* methods will not be invoked if clicked.

Depending on where it is, it might still get focus. In such case it can be partially disabled separately.

See

focusable.

Inherited from

DialogButtonProps.disabled


focusable?

optional focusable: boolean;

Defined in: typescript-packages/client/src/components/Dialog.ts:37

Enables/disables the navigation based focus on button - you won't be able to navigate to it via the gamepad or keyboard.

If set to false, it still can be clicked and WILL become focused until navigated away. Depending on the context of where the button is, even a disabled button can focused.

Inherited from

DialogButtonProps.focusable


key?

optional key: null | Key;

Defined in: node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:261

Inherited from

DialogButtonProps.key


noFocusRing?

optional noFocusRing: boolean;

Defined in: typescript-packages/client/src/components/Dialog.ts:18

Enables/disables the focus around the button.

Default value depends on context, so setting it to false will enable it.

Inherited from

DialogButtonProps.noFocusRing


onButtonDown()?

optional onButtonDown: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:57

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onButtonDown


onButtonUp()?

optional onButtonUp: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:58

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onButtonUp


onCancelActionDescription?

optional onCancelActionDescription: ReactNode;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:53

Inherited from

DialogButtonProps.onCancelActionDescription


onCancelButton()?

optional onCancelButton: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:60

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onCancelButton


onGamepadBlur()?

optional onGamepadBlur: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:65

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onGamepadBlur


onGamepadDirection()?

optional onGamepadDirection: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:63

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onGamepadDirection


onGamepadFocus()?

optional onGamepadFocus: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:64

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onGamepadFocus


onMenuActionDescription?

optional onMenuActionDescription: ReactNode;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:56

Inherited from

DialogButtonProps.onMenuActionDescription


onMenuButton()?

optional onMenuButton: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:66

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onMenuButton


onOKActionDescription?

optional onOKActionDescription: ReactNode;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:52

Inherited from

DialogButtonProps.onOKActionDescription


onOKButton()?

optional onOKButton: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:59

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onOKButton


onOptionsActionDescription?

optional onOptionsActionDescription: ReactNode;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:55

Inherited from

DialogButtonProps.onOptionsActionDescription


onOptionsButton()?

optional onOptionsButton: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:62

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onOptionsButton


onSecondaryActionDescription?

optional onSecondaryActionDescription: ReactNode;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:54

Inherited from

DialogButtonProps.onSecondaryActionDescription


onSecondaryButton()?

optional onSecondaryButton: (evt) => void;

Defined in: typescript-packages/client/src/components/FooterLegend.ts:61

Parameters

evt

GamepadEvent

Returns

void

Inherited from

DialogButtonProps.onSecondaryButton


ref?

optional ref: LegacyRef<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:303

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

See

React Docs

Inherited from

DialogButtonProps.ref


style?

optional style: CSSProperties;

Defined in: typescript-packages/client/src/components/Dialog.ts:7

Inherited from

DialogButtonProps.style

Methods

onClick()?

optional onClick(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:39

Parameters

e

MouseEvent

Returns

void

Inherited from

DialogButtonProps.onClick


onMouseDown()?

optional onMouseDown(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:43

Parameters

e

MouseEvent

Returns

void

Inherited from

DialogButtonProps.onMouseDown


onMouseUp()?

optional onMouseUp(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:44

Parameters

e

MouseEvent

Returns

void

Inherited from

DialogButtonProps.onMouseUp


onPointerCancel()?

optional onPointerCancel(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:42

Parameters

e

PointerEvent

Returns

void

Inherited from

DialogButtonProps.onPointerCancel


onPointerDown()?

optional onPointerDown(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:40

Parameters

e

PointerEvent

Returns

void

Inherited from

DialogButtonProps.onPointerDown


onPointerUp()?

optional onPointerUp(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:41

Parameters

e

PointerEvent

Returns

void

Inherited from

DialogButtonProps.onPointerUp


onSubmit()?

optional onSubmit(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:48

Parameters

e

SubmitEvent

Returns

void

Inherited from

DialogButtonProps.onSubmit


onTouchCancel()?

optional onTouchCancel(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:47

Parameters

e

TouchEvent

Returns

void

Inherited from

DialogButtonProps.onTouchCancel


onTouchEnd()?

optional onTouchEnd(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:46

Parameters

e

TouchEvent

Returns

void

Inherited from

DialogButtonProps.onTouchEnd


onTouchStart()?

optional onTouchStart(e): void;

Defined in: typescript-packages/client/src/components/Dialog.ts:45

Parameters

e

TouchEvent

Returns

void

Inherited from

DialogButtonProps.onTouchStart