Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

@polymorphic-factory/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Apr 14:12
· 295 commits to main since this release
0e30dcc

Minor Changes

  • #327 b572666 Thanks @TimKolberger! - Removed the member defaultProps from the type ComponentWithAs to support React 18.3.0.

    This is possibly a breaking change for TypeScript users.

  • #327 b572666 Thanks @TimKolberger! - When using the as prop, the ref will now be typed accordingly.

    This is possibly a breaking change for TypeScript users.

    const ref = useRef<HTMLAnchorElement>(null)
    return <poly.button as="a" ref={ref} />