Skip to content

feat(chip): modernize MD3 API#5002

Open
draggie wants to merge 1 commit into
callstack:mainfrom
draggie:feat/chip-md3
Open

feat(chip): modernize MD3 API#5002
draggie wants to merge 1 commit into
callstack:mainfrom
draggie:feat/chip-md3

Conversation

@draggie

@draggie draggie commented Jun 16, 2026

Copy link
Copy Markdown

Motivation

Refactors Chip toward the v6/MD3 API and implementation direction.

This change introduces an explicit label prop, extracts Chip-specific tokens, simplifies the internal layout, and removes press-time elevation
animation overhead. It also updates selected, outlined, disabled, icon/avatar, close icon, touch target, and state layer/ripple handling to better align
with Material Design 3.

The example app has been updated to showcase the new API and MD3-oriented Chip states.

Related issue

Closes #4931

Test plan

  • Verified Chip examples in the example app.
  • Verified Android example build:
    • cd example/android
    • ./gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64- v8a
  • Ran TypeScript:
    • yarn typescript
  • Ran lint:
    • yarn lint-no-fix
  • Ran tests:
    • yarn test --runInBand --watchman=false
  • Ran docs build:
    • yarn docs build
simulator_screenshot_B01F025C-C346-425D-A08F-CB46EEE951BA Screenshot_1781595724

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.

refactor(chip): improve selection model and MD3 compliance

1 participant