# VarDeclaration

* jsx

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


  <VarDeclaration
    const
    initializer={Children}
    let
    nullish
    type={Children}
    var
   />
  ```

* stc

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


  VarDeclaration({
    const: boolean,
    initializer: Children,
    let: boolean,
    nullish: boolean,
    type: Children,
    var: boolean,
  }).children(children)
  ```

## Props

|             |                                                   |   |
| ----------- | ------------------------------------------------- | - |
| const       | optional boolean                                  |   |
| initializer | optional[Children](../../../core/types/children/) |   |
| let         | optional boolean                                  |   |
| nullish     | optional boolean                                  |   |
| type        | optional[Children](../../../core/types/children/) |   |
| var         | optional boolean                                  |   |
