def on_click1() -> EventHandler:
    """A sample on click function.

    Returns:
        A sample on click function.
    """

    def on_click1():
        pass

    return EventHandler(fn=on_click1)
A sample on click function.

    Returns:
        A sample on click function.
    
tests/units/components/test_component.py