CodeTextarea.svelte view source
accepts children
import CodeTextarea from '@fuzdev/fuz_code/CodeTextarea.svelte'; value?
type
string | (string[] & string)optional bindable default
''lang?
type
stringoptional default
'svelte'grammar?
Optional custom grammar; takes precedence over lang for tokenization.
type SyntaxGrammar
optional
syntax_styler?
Custom SyntaxStyler instance (defaults to the global one).
type SyntaxStyler
optional default
syntax_styler_globalwrapper_attrs?
Attributes for the wrapper <div> — the layout box that the textarea
fills and resize grows. Use it for sizing/layout classes, style,
id, or container-level handlers. Its class is merged with the
internal code_textarea class; data-lang stays component-controlled.
(...rest spreads onto the <textarea>; the backdrop <pre> is
internal and intentionally not exposed.)
type
HTMLAttributes<HTMLDivElement>optional
intersects
SvelteHTMLElements['textarea']