Typescript
Generate docs from Typescript definitions
Usage
UI Integration
It comes with the AutoTypeTable component. Learn more about Auto Type Table.
Generate from MDX Files
Generate from existing MDX files statically.
Create a model MDX file.
Run this script with node ./script.mjs.
Generated MDX files assumes you are using the Tailwind CSS preset of Fumadocs UI.
If you want to customise generated output, use the templates option.
Generate from MDX Content
Same as generating from MDX files, but you can pass the MDX file content directly.
Annotations
Hide
Hide a field by adding @internal tsdoc tag.
Specify Type Name
You can specify the name of a type with the @remarks tsdoc tag.
This will make the type of time property to be shown as timestamp.
Demo
Below is an example generated from Typescript definitions.
NavbarProps
enabledbooleanNo Description
componentReactNodeNo Description
enableSearchbooleanShow/hide search toggle
Note: Enable/disable search from root provider instead
childrenReactNodeNo Description
titleReactNodeNo Description
urlstringRedirect url of title
- defaultValue: '/'
transparentMode"always" | "top" | "none"Use transparent background
- defaultValue: none
