Skip to content

ImportStatements

A component that renders import statements based on the provided import records.

import { ImportStatements } from "@alloy-js/python";
<ImportStatements joinImportsFromSameModule records={ImportRecords} />
joinImportsFromSameModuleoptionalboolean
records[unresolved link]

This component will render import statements for each module and its symbols. If joinImportsFromSameModule is true, it will group imports from the same module into a single statement.