# SourceFile

* jsx

  ```tsx
  import { SourceFile } from "@alloy-js/typescript";


  <SourceFile
    export={boolean | string}
    header={Children}
    headerComment="string"
    path="string"
  >
    {children}
  </SourceFile>
  ```

* stc

  ```ts
  import { SourceFile } from "@alloy-js/typescript/stc";


  SourceFile({
    export: boolean | string,
    header: Children,
    headerComment: string,
    path: string,
  }).children(children)
  ```

## Props

|               |                                                   |   |
| ------------- | ------------------------------------------------- | - |
| children      | optional[Children](../../../core/types/children/) |   |
| export        | optional boolean \| string                        |   |
| header        | optional[Children](../../../core/types/children/) |   |
| headerComment | optional string                                   |   |
| path          | string                                            |   |
