Askr
Generated API snapshot

@askrjs/askr/foundations/interactions

Exports from the declarations published in @askrjs/askr 0.0.59. Signatures are generated from the installed artifact.

  • @askrjs/askr/foundations/interactions0.0.59

Exports

This entrypoint publishes 18 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.

applyInteractionPolicytype

applyInteractionPolicy: ({ isNative, disabled, onPress, ref }: InteractionPolicyInput) => { disabled: true | undefined; onClick: (e: Event) => void; ref: Ref<unknown>; } | { tabIndex: number; ref: Ref<unknown>; "aria-disabled"?: "true"; onClick: (e: DefaultPreventable & PropagationStoppable) => void; disabled?: true; role?: "button"; onKeyDown?: (e: KeyboardLikeEvent) => void; onKeyUp?: (e: KeyboardLikeEvent) => void; }

dismissabletype

dismissable: ({ node, disabled, onDismiss }: DismissableOptions) => { onKeyDown: (e: KeyboardLikeEvent) => void; onPointerDownCapture: (e: PointerLikeEvent) => void; }

focusabletype

focusable: ({ disabled, tabIndex }: FocusableOptions) => FocusableResult

hoverabletype

hoverable: ({ disabled, onEnter, onLeave }: HoverableOptions) => HoverableResult

mergeInteractionPropstype

mergeInteractionProps: (childProps: Record<string, unknown>, policyProps: Record<string, unknown>, userProps?: Record<string, unknown>) => Record<string, unknown>

pressabletype

pressable: ({ disabled, onPress, isNativeButton }: PressableOptions) => PressableResult

rovingFocustype

rovingFocus: (options: RovingFocusOptions) => RovingFocusResult