Interface ISplitTextStaticProps

Static properties for the SplitText module

interface ISplitTextStaticProps {
    __staticProp?: null;
    container: HTMLElement;
    letters?: boolean;
    letterTag?: keyof HTMLElementTagNameMap;
    lines?: boolean;
    linesWrapper?: boolean;
    lineTag?: keyof HTMLElementTagNameMap;
    resizeDebounce?: number;
    wordTag?: keyof HTMLElementTagNameMap;
}

Hierarchy (View Summary)

Properties

__staticProp?: null
container: HTMLElement

The text container where the text will be split.

letters?: boolean

Specifies whether the text should be split into individual letters.

false
letterTag?: keyof HTMLElementTagNameMap

HTML tag to wrap each letter.

span

lines?: boolean

Specifies whether the text should be split into lines.

false
linesWrapper?: boolean

Specifies whether to wrap each line in an additional container.

false
lineTag?: keyof HTMLElementTagNameMap

HTML tag to wrap each line.

span

resizeDebounce?: number

The debounce delay for the resize event in milliseconds.

0
wordTag?: keyof HTMLElementTagNameMap

HTML tag to wrap each word.

span