Skip to main content

Function: getJsxAttributeByName()

getJsxAttributeByName(openingElement: Readonly<TSESTree.JSXOpeningElement>, attributeName: string): JSXAttribute | null

Defined in: _internal/docusaurus-jsx-ast.ts:37

Get a JSX attribute by name when present.

Parametersโ€‹

openingElementโ€‹

Readonly<TSESTree.JSXOpeningElement>

attributeNameโ€‹

string

Returnsโ€‹

JSXAttribute | null