Guide 10
Tab Configuration
cngxjs (opens in new tab)Updated Guide10of 13
Each entity page renders one or more tabs: Info, API, Source, plusREADME, Template, Styles, Theming, DOM Tree,Examples, and Playground when there is data for them. Tab visibility is data-driven. Sections only render when there’s something to show.
Auto-visibility
- Theming appears on component pages when the component’s styles hold documented tokens or mixins, and on component and directive pages when a file listed in
styleFilesnames them with@themes. - Examples appears when at least one
<example-url>marker is present in the class JSDoc. - Info, API,Source are always present where applicable.
Reorder, relabel, or hide tabs
navTabConfig takes a list of { id, label }objects. Tabs you don’t list are hidden. IDs: info,readme, api,source, templateData,styleData, theming,tree, example, andplayground.
Section composition
Within each tab, sections render in a default order. Sections without data are skipped: a component without inputs simply omits the inputs row, no empty heading. The config-only keysinfoTabSections, apiTabSections, andthemingTabSections replace that list in full, so name every section you want. The IDs are in the options guide.
Theming tab sections
The Theming tab’s composition is configurable per project via the JSON config file (no CLI flag). Pass a subset of ['overview', 'index', 'tokens', 'mixins', 'source']in the order you want them to appear:
{
"themingTabSections": ["overview", "tokens"]
}The example above hides the per-tab token index, the mixins, and the source preview. Tab visibility itself is not affected. The Theming tab still shows whenever theming data exists.
Deeper customization
For changes beyond reordering or hiding sections (custom rendering, additional members, project-specific layouts) use the JS-based template override system via--templates <path>. Each overridable surface (page-level and block-level) is a JS partial exportingfunction(data, helpers) .... Coming from Handlebars overrides? Rewrite them by hand with the cookbook in the migration guide. Handlebars files are skipped with one warning.