"""AUTO-GENERATED by scripts/codegen.py — DO NOT EDIT."""
from __future__ import annotations

from typing import Any, Callable

from zuzu.runtime.spec import _add_component
from zuzu.record import Record, RecordQuery
from zuzu.components._utils import _check_visible



def columns(n: int | float = 2, *, visible: Any = True) -> None:
    """Multi-column layout."""
    if not _check_visible(visible):
        return
    comp: dict[str, Any] = {"type": "columns", "count": n}
    _add_component(comp)


def section(title: str, *, visible: Any = True) -> None:
    """Section divider with title."""
    if not _check_visible(visible):
        return
    comp: dict[str, Any] = {"type": "section", "title": title}
    _add_component(comp)


def separator(*, visible: Any = True) -> None:
    """Visual separator line."""
    if not _check_visible(visible):
        return
    comp: dict[str, Any] = {"type": "separator"}
    _add_component(comp)


def tabs(items: list[Any], *, visible: Any = True) -> None:
    """Tabbed layout container."""
    if not _check_visible(visible):
        return
    comp: dict[str, Any] = {"type": "tabs", "items": items}
    _add_component(comp)
