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 Adalt 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
enabled
boolean
No Description
component
ReactNode
No Description
enableSearch
boolean
Show/hide search toggle
Note: Enable/disable search from root provider instead
children
ReactNode
No Description
title
ReactNode
No Description
url
string
Redirect url of title
- defaultValue: '/'
transparentMode
"always" | "top" | "none"
Use transparent background
- defaultValue: none