Skip to main content

Function: getStaticStringValueFromJsxAttribute()

function getStaticStringValueFromJsxAttribute(
attribute: Readonly<TSESTree.JSXAttribute>
): string | null;

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

Resolve a static string value from a JSX attribute when possible.

Parametersโ€‹

attributeโ€‹

Readonly<TSESTree.JSXAttribute>

Returnsโ€‹

string | null