@tempots/ui

AutoFocus() function

Creates a renderable function that focuses on the element after a specified delay.

Signature:

AutoFocus: (delay?: number) => Renderable

Parameters

Parameter

Type

Description

delay

number

(Optional) The delay in milliseconds before focusing on the element. Default is 10 milliseconds.

Returns: Renderable

A renderable function that focuses on the element.