Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): add missing ref prop to Portal (#1031)
- Adds the missing `ref` prop to `<Portal>`. - If `isSVG`, the element in `ref` is `SVGGElement`, otherwise it is `HTMLDivElement`. - If `useShadow`, the element in `ref` has a non-null `shadowRoot` property. - `ref` is unused when mounting to `document.head`, however there is no way to detect this as `HTMLHeadElement` is typed identically to `HTMLElement`. See https://tsplay.dev/mb0P2w.
- Loading branch information