Skip to main content

Function: getStaticStringValueFromJsxAttribute()

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

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

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

Parametersโ€‹

attributeโ€‹

Readonly<TSESTree.JSXAttribute>

Returnsโ€‹

string | null