accepts children
import Code from '@fuzdev/fuz_code/Code.svelte'; lang?
type
stringoptional default
'svelte'children?
type
Snippet<[]> & Snippet<[markup: string]>optional
content?
The source code to syntax highlight.
type
stringoptional
dangerous_raw_html?
type
stringoptional
inline?
Whether to render as inline code instead of a block.
type
booleanoptional default
falsewrap?
Whether to wrap long lines in block code (white-space: pre-wrap
instead of pre). Wraps at whitespace — long unbroken tokens (URLs,
hashes) still scroll horizontally. Ignored for inline code.
type
booleanoptional default
falsenomargin?
Whether to disable the default margin-bottom on block code
(var(--space_lg) when not :last-child).
type
booleanoptional default
falsesyntax_styler?
Custom SyntaxStyler instance, e.g. with different languages registered.
type SyntaxStyler
optional default
syntax_styler_globalintersects
SvelteHTMLElements['code']