Interface ISplitTextStaticProps

Static properties for the SplitText module

interface ISplitTextStaticProps {
    __staticProp?: null;
    container: HTMLElement;
    ignore?: null | string | HTMLElement[] | (element: HTMLElement) => boolean;
    letterClass?: string;
    letters?: boolean;
    letterTag?: keyof HTMLElementTagNameMap;
    lineClass?: string;
    lines?: boolean;
    linesWrapper?: boolean;
    lineTag?: keyof HTMLElementTagNameMap;
    lineWrapperClass?: string;
    resizeDebounce?: number;
    wordClass?: string;
    wordTag?: keyof HTMLElementTagNameMap;
}

Hierarchy (View Summary)

Properties

__staticProp?: null
container: HTMLElement

The text container where the text will be split.

ignore?: null | string | HTMLElement[] | (element: HTMLElement) => boolean

Do not split certain elements. Supports string selectors, array of elements, or function.

null
letterClass?: string

Letter class name.

v-split-text__letter

letters?: boolean

Specifies whether the text should be split into individual letters.

false
letterTag?: keyof HTMLElementTagNameMap

HTML tag to wrap each letter.

span

lineClass?: string

Line class name.

v-split-text__line

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

lineWrapperClass?: string

Line wrapper class name.

v-split-text__line-wrapper

resizeDebounce?: number

The debounce delay for the resize event in milliseconds.

0
wordClass?: string

Word class name.

v-split-text__word

wordTag?: keyof HTMLElementTagNameMap

HTML tag to wrap each word.

span