HelixOverviewDocsComponentsSandboxTheme builderCortexDocsEngramBuildingTraceBuildingRecallDeclaredServicesInsightsGet in touchSource on GitHub
Loading the reference
CodeView SourceEdit in SandboxView MarkdownCopy MarkdownOpen in ClaudeOpen in CursorA fragment of code inside a line of prose.StableSince 0.1.0TypographyUsageimport'@fusion.dev/helix/code'import'@fusion.dev/helix-headless/code'Preview
API ReferenceRoothelix-codeA fragment of code inside a line of prose.
ReadTypeDescriptionwhenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescription(default)The code.
PartDescriptioncodeThe `<code>` element.
CSS PropertyDescription--code-paddingSpace either side of the fragment. Defaults to half of `space-2xs`, which is what keeps a bracket beside the chip rather than a space away from it.--code-sizeThe fragment's size. Defaults to `text-sm`.
Roothelix-headless-codeA fragment of code inside a line of prose.
ReadTypeDescriptionwhenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescription(default)The code.
PartDescriptioncodeThe `<code>` element.
ExamplesNameDescriptionPreviewA fragment of code inside a line of prose.PreviewA fragment of code inside a line of prose.