def set_focus(ref: str) -> EventSpec:
    """Set focus to specified ref.

    Args:
        ref: The ref.

    Returns:
        An event to set focus on the ref
    """
    return server_side(
        "_set_focus",
        get_fn_signature(set_focus),
        ref=LiteralVar.create(format.format_ref(ref)),
    )
Set focus to specified ref.

    Args:
        ref: The ref.

    Returns:
        An event to set focus on the ref
    
reflex/event.py