def _get_props_subclass(field_type: Any) -> type | None:
    """Extract the Props subclass from a field type annotation.

    Args:
        field_type: The type annotation to check.

    Returns:
        The Props subclass if found, None otherwise.
    """
    from reflex.utils.types import typehint_issubclass

    # For direct class types, we can return them directly if they're Props subclasses
    if isinstance(field_type, type):
        return field_type if typehint_issubclass(field_type, PropsBase) else None

    # For Union types, check each union member
    if is_union(field_type):
        for arg in get_args(field_type):
            result = _get_props_subclass(arg)
            if result is not None:
                return result

    return None
Extract the Props subclass from a field type annotation.

    Args:
        field_type: The type annotation to check.

    Returns:
        The Props subclass if found, None otherwise.
    
reflex/components/props.py