For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/react-rsbuild-plugin.pluginreactlynxoptions.experimental_transformbuiltinattributenames.md.
这是开发预览网站。请访问正式文档 lynx-stack.dev

Home > @lynx-js/react-rsbuild-plugin > PluginReactLynxOptions > experimental_transformBuiltinAttributeNames

PluginReactLynxOptions.experimental_transformBuiltinAttributeNames property

Transform attribute names on Lynx builtin elements.

Signature:

experimental_transformBuiltinAttributeNames?: boolean | TransformBuiltinAttributeNamesOptions;

Default Value

false

Remarks

false disables the conversion. true applies the default rule:onClick becomes bindtap, onCatchTap becomes catchtap, otheronXXX names become bindxxx, and remaining camelCase names become dash-case. An object provides serializable custom rules. Exact entries inrename take precedence over preserve, followed by the fallback behavior selected by mode.

Explicit JSX attributes are transformed at compile time. Attributes supplied through JSX spreads are transformed at runtime with the same rules.