CodeTextarea.svelte

view source

Declarations
#

CodeTextarea
#

CodeTextarea.svelte view source

accepts children

import CodeTextarea from '@fuzdev/fuz_code/CodeTextarea.svelte';

value?

type string | (string[] & string)
optional bindable default ''

lang?

type string
optional default 'svelte'

grammar?

Optional custom grammar; takes precedence over lang for tokenization.

optional

syntax_styler?

Custom SyntaxStyler instance (defaults to the global one).

optional default syntax_styler_global

wrapper_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']

Depends on
#