Skip to main content
Version: Next

API Documentation Template

Standard template for package and component API reference pages.

Required sections

  • Import
  • Types/Props table
  • Events/Callbacks
  • Defaults
  • Accessibility contract
  • Performance contract
  • Version notes (if behavior changed)
  • Related pages and migration links (if applicable)

Example props table

NameTypeDefaultDescription
valuestring""Controlled value

Example methods table

MethodParamsReturnsDescription
setConfigconfig: Partial<EditorConfig>Promise<void>Updates runtime config at instance level
execCommandname: string, args?: unknownbooleanExecutes a registered command on active editor instance