Skip to content

v0.8.1

Choose a tag to compare

@edadma edadma released this 29 Nov 01:50
· 374 commits to main since this release

Test-Friendly Component Updates

All components now support prop pass-through for better testing and customization:

New Features

  • Full HTML attribute support: All components extend React.HTMLAttributes for complete prop forwarding
  • Custom data attributes: Pass data-testid and other data-* attributes via rest spread
  • State tracking: Added data-state attributes for testing component states:
    • Affix: data-state="affixed|normal"
    • QRCode: data-state="loading|expired|active"
    • Result: data-status attribute

Technical Improvements

  • Used Omit pattern to avoid TypeScript conflicts with built-in HTML attributes
  • Components are now test-friendly like Radix UI and Headless UI
  • Enables easier integration with testing libraries (React Testing Library, Playwright, etc.)

Components Updated

All 80+ components received prop pass-through support.