def add_texts(components: List[ComponentOrFactory], prefix: str='', index0: int=0, **kwargs) -> List[Component]:
    'Return a list of Component with text labels.\n\n    Args:\n        components: list of components\n        prefix: Optional prefix for the labels\n        index0: defaults to 0 (0, for first component, 1 for second ...)\n\n    keyword Args:\n        text_offset: relative to component size info anchor. Defaults to center.\n        text_anchor: relative to component (ce cw nc ne nw sc se sw center cc).\n        text_factory: function to add text labels.\n    '
    return [add_text(component, text=f'{prefix}{(i + index0)}', **kwargs) for (i, component) in enumerate(components)]
Return a list of Component with text labels.

Args:
    components: list of components
    prefix: Optional prefix for the labels
    index0: defaults to 0 (0, for first component, 1 for second ...)

keyword Args:
    text_offset: relative to component size info anchor. Defaults to center.
    text_anchor: relative to component (ce cw nc ne nw sc se sw center cc).
    text_factory: function to add text labels.
def add_texts(components: List[ComponentOrFactory], prefix: str=, index0: int=0, **kwargs) -> List[Component]:
    'Return a list of Component with text labels.\n\n    Args:\n        components: list of components\n        prefix: Optional prefix for the labels\n        index0: defaults to 0 (0, for first component, 1 for second ...)\n\n    keyword Args:\n        text_offset: relative to component size info anchor. Defaults to center.\n        text_anchor: relative to component (ce cw nc ne nw sc se sw center cc).\n        text_factory: function to add text labels.\n    '
    return [add_text(component, text=f'{prefix}{(i + index0)}', **kwargs) for (i, component) in enumerate(components)]