Skip to content

feat(codemod): add field-indicator and map field data attributes - #4310

Merged
Adebesin-Cell merged 1 commit into
v6from
feat/codemod-field-indicator
Nov 21, 2026
Merged

Adebesin-Cell merged 1 commit into
v6from
feat/codemod-field-indicator

Conversation

@Adebesin-Cell

Copy link
Copy Markdown
Collaborator

📝 Description

Codemod support for the Field move to the Zag machines (#4299).

⛳️ Current behavior (updates)

Field.RequiredIndicator has to be replaced by hand, and css/data-attributes turns [data-scope=field][data-part=input] into [data-field-input], which v6 no longer emits.

🚀 New behavior

  • field-indicator for react, solid, svelte and vue: Field.RequiredIndicator becomes Field.Indicator type="required", closing tag included. A directly imported FieldRequiredIndicator is reported instead of rewritten.
  • Rename rules take a renamePart option, supported in all three engines.
  • css/data-attributes maps the field input, textarea and select parts to control, and required-indicator to indicator.
  • Svelte: tags are now read to their real end, so a > inside an attribute value or expression no longer cuts the attributes short, and the space before /> is kept.
  • Vue: ensure writes plain string values (type="required") instead of a binding.
  • Upgrade guide and V6_MIGRATION_GUIDE.md list the new transform.

🧩 Frameworks

React, Solid, Svelte, Vue (codemod)

💣 Is this a breaking change (Yes/No):

No

📝 Additional information

Vue kebab-case tags (<field-required-indicator>) aren't matched by any rename rule yet, this one included.

@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ark-docs Ready Ready Preview Nov 21, 2026 7:01pm UTC

Request Review

@Adebesin-Cell
Adebesin-Cell merged commit 11af7ce into v6 Nov 21, 2026
10 checks passed
@Adebesin-Cell
Adebesin-Cell deleted the feat/codemod-field-indicator branch November 21, 2026 19:02

This branch was successfully deployed

1 active deployment
Preview — 06eb2d27 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant