Skip to content

JSDocExample

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

import { JSDocExample } from "@alloy-js/typescript";
<JSDocExample fenced language="string">
{children}
</JSDocExample>

Props

childrenChildren
fencedoptionalboolean
languageoptionalstring