Function: getJsxAttributeByName()
function getJsxAttributeByName(
openingElement: Readonly<TSESTree.JSXOpeningElement>,
attributeName: string
): JSXAttribute | null;
Defined in: _internal/docusaurus-jsx-ast.ts:38
Get a JSX attribute by name when present.
Parametersโ
openingElementโ
Readonly<TSESTree.JSXOpeningElement>
attributeNameโ
string
Returnsโ
JSXAttribute | null