def my_component():
    """A test component function.

    Returns:
        A test component function.
    """

    def my_component(prop1: Var[str], prop2: Var[int]):
        return Box.create(prop1, prop2)

    return my_component
A test component function.

    Returns:
        A test component function.
    
tests/units/components/test_component.py