Skip to main content

ComponentAPIBar

ClassDataClassSource

ComponentAPIBar(
name: str = "APITopBar",
type: Literal["func", "class", "module", "package", "type"],
slang: str = "",
is_data_class: bool = False,
is_enum: bool = False,
is_ctx: bool = False,
is_decorator: bool = False,
is_mixin: bool = False,
is_component: bool = False,
is_private: bool = False,
is_abstract: bool = False
)

The renderer of the top API bar.

Fields

NameTypeRequired
Description
namestrThe name of the top bar.
typeLiteral["func", "class", "module", "package", "type"]The type of the API. It is usually the first icon.
slangstrThe unique code used for identifying the top bar. It is usually the full route-name of the object to be described.
is_data_classboolA flag. If specified, will render the dataclass icon.
is_enumboolA flag. If specified, will render the enum icon.
is_ctxboolA flag. If specified, will render the context icon.
is_decoratorboolA flag. If specified, will render the decorator icon.
is_mixinboolA flag. If specified, will render the mixin icon.
is_componentboolA flag. If specified, will render the component icon.
is_privateboolA flag. If specified, will render the private icon.
is_abstractboolA flag. If specified, will render the abstract icon.