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
| Name | Type | Required | |
|---|---|---|---|
name | str | The name of the top bar. | |
type | Literal["func", "class", "module", "package", "type"] | The type of the API. It is usually the first icon. | |
slang | str | The unique code used for identifying the top bar. It is usually the full route-name of the object to be described. | |
is_data_class | bool | A flag. If specified, will render the dataclass icon. | |
is_enum | bool | A flag. If specified, will render the enum icon. | |
is_ctx | bool | A flag. If specified, will render the context icon. | |
is_decorator | bool | A flag. If specified, will render the decorator icon. | |
is_mixin | bool | A flag. If specified, will render the mixin icon. | |
is_component | bool | A flag. If specified, will render the component icon. | |
is_private | bool | A flag. If specified, will render the private icon. | |
is_abstract | bool | A flag. If specified, will render the abstract icon. |