Skip to content

feat(react): export field a11y and array-host defaults pieces (#154) - #157

Merged
timkindberg merged 1 commit into
feat/146-gallery-readmefrom
feat/154-defaults-pieces
Aug 16, 2026
Merged

feat(react): export field a11y and array-host defaults pieces (#154)#157
timkindberg merged 1 commit into
feat/146-gallery-readmefrom
feat/154-defaults-pieces

Conversation

@timkindberg

Copy link
Copy Markdown
Owner

Summary

Closes #154 (child of #141). Stacks on #156 / #146.

Custom field/array roots can compose useFieldA11y, FieldControlSlot, and ArrayHost instead of copying DefaultFieldRoot / array slot state. Error <ul> stays private; the seam is fieldErrorId. createRenderer still wraps array.root in ArrayHost.

Agent did the grind.

Test plan

  • Custom defaults.field.root using the pieces still gets aria-invalid / aria-describedby
  • parts.control override still receives error a11y on attrs
  • Custom defaults.array.root still add/removes without remounting survivors
  • npm run gate

Made with Cursor

Custom field/array roots can compose useFieldA11y, FieldControlSlot, and
ArrayHost instead of copying DefaultFieldRoot / array slot state.

Co-authored-by: Cursor <cursoragent@cursor.com>
@timkindberg
timkindberg merged commit 56cc966 into feat/146-gallery-readme Aug 16, 2026
2 checks passed
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