# JSDocExample

Create a JSDoc example set off with `@example`. When the `fenced` prop is true, a `language` prop can also be set.

* jsx

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


  <JSDocExample fenced language="string">
    {children}
  </JSDocExample>
  ```

* stc

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


  JSDocExample({ fenced: boolean, language: string }).children(children)
  ```

## Props

|          |                                           |   |
| -------- | ----------------------------------------- | - |
| children | [Children](../../../core/types/children/) |   |
| fenced   | optional boolean                          |   |
| language | optional string                           |   |
