ImportStatements
A component that renders import statements based on the provided import records.
import { ImportStatements } from "@alloy-js/python";
<ImportStatements joinImportsFromSameModule records={ImportRecords} />
import { ImportStatements } from "@alloy-js/python/stc";
ImportStatements({ joinImportsFromSameModule: boolean, records: ImportRecords,}).children(children)
joinImportsFromSameModule | optionalboolean |
records | [unresolved link] |
Remarks
Section titled “Remarks”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.