For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/packages/react-rsbuild-plugin/interfaces/TransformBuiltinAttributeNamesOptions.md.
Lynx
  • English
  • Interface: TransformBuiltinAttributeNamesOptions

    Serializable rules for transforming builtin element attribute names.

    Exact entries in rename take precedence over preserve, followed by the fallback behavior selected by mode.

    Properties

    mode?

    optional mode?: "dash-case" | "mapping-only"

    The fallback behavior for attribute names not listed in rename or preserve.

    'dash-case' also applies the default React-style event mappings. 'mapping-only' leaves all remaining names unchanged.

    Default Value

    'dash-case'


    preserve?

    optional preserve?: readonly string[]

    Attribute names that should remain unchanged unless an exact rename entry is also present.


    rename?

    optional rename?: Readonly<Record<string, string>>

    Exact mappings from source attribute names to transformed attribute names.

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.