Skip to main content

CompModule

ClassDataClassSource

CompModule(
module: str, default: str = "", named: set[str | tuple[str, str]] = set(...)
)

The MDX component module to be rendered. Call str(...) to render this object as an MDX code line.

Fields​

NameTypeRequired
Description
modulestrThe full typescript module of the component.
defaultstrThe default export of the module. If not specified, will not export the default value.
namedset[str | tuple[str, str]]

The named export of the module. If not specified, will not export any names.

If the element is a tuple, it means (export_name, as_name) during the import.