generated:catalog.entry.code.title
generated:catalog.entry.code.description
@xngui/components/code@xngui/components/codechrome:demo.section
chrome:demo.preview
styles.css@import '@xngui/styles';
@import '@xngui/styles/tailwind';
@import '@xngui/icons/fontawesome';import { Component } from '@angular/core';
import { XCode } from '@xngui/components/code';
@Component({
selector: 'app-example',
imports: [XCode],
templateUrl: './code.component.html',
})
export class ExampleComponent {}
chrome:demo.events.title
chrome:demo.events.empty
chrome:demo.api.title
x-code
chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
sizeXSize—Visual size tier — falls back to XConfigService when unset.
densityXDensity—Body and chrome padding offsets — orthogonal to `size`; falls back to XConfigService when unset.
filenamestring—Editor chrome filename shown in the title bar.
titlestring—Panel chrome title when not using editor filename chrome.
codestring''Plain source text when `lines` is unset.
linesreadonly XCodeLine[]—Structured lines with per-line syntax highlighting kinds.
copyablebooleantrueShows the copy button and enables clipboard copy.
chromeDotsbooleantrueShows traffic-light dots in editor chrome.
lineCountnumber4Placeholder line count for skeleton state when `code` and `lines` are empty.
ariaLabelstring—Accessible name when filename and title are unset.