Skip to main content

Module: @lexical/react/LexicalAutoLinkPlugin

Type Aliases

LinkMatcher

Ƭ LinkMatcher: (text: string) => LinkMatcherResult | null

Type declaration

▸ (text): LinkMatcherResult | null

Parameters
NameType
textstring
Returns

LinkMatcherResult | null

Defined in

packages/lexical-react/src/LexicalAutoLinkPlugin.ts:43

Functions

AutoLinkPlugin

AutoLinkPlugin(«destructured»): JSX.Element | null

Parameters

NameType
«destructured»Object
› matchersLinkMatcher[]
› onChange?ChangeHandler

Returns

JSX.Element | null

Defined in

packages/lexical-react/src/LexicalAutoLinkPlugin.ts:471


createLinkMatcherWithRegExp

createLinkMatcherWithRegExp(regExp, urlTransformer?): (text: string) => null | { index: number = match.index; length: number ; text: string ; url: string }

Parameters

NameType
regExpRegExp
urlTransformer(text: string) => string

Returns

fn

▸ (text): null | { index: number = match.index; length: number ; text: string ; url: string }

Parameters
NameType
textstring
Returns

null | { index: number = match.index; length: number ; text: string ; url: string }

Defined in

packages/lexical-react/src/LexicalAutoLinkPlugin.ts:45