PressableOptions
import type { PressableOptions } from 'pixi-silk/ui/blocks';
Options of pressable.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
enabled? | Value<boolean> | Whether the block takes input. Default true. | packages/pixi-silk/src/ui/blocks.ts:68 |
hitArea? | "rect" | IHitArea | "circle" | Hit area: the slot’s rectangle (default), the circle inscribed in it, or your own. | packages/pixi-silk/src/ui/blocks.ts:70 |
onPress | () => void | Called on a release inside the block after a press that started on it. | packages/pixi-silk/src/ui/blocks.ts:66 |
target? | Container<ContainerChild> | Container that takes the pointer. Default the block itself. Use a child for a second button in one block. | packages/pixi-silk/src/ui/blocks.ts:72 |