feat: add PowerInput component

This commit is contained in:
Ali BARIN
2022-02-17 20:15:08 +01:00
committed by Ömer Faruk Aydın
parent c864a1062d
commit d06f21c927
30 changed files with 848 additions and 115 deletions

View File

@@ -0,0 +1,14 @@
import * as React from 'react'
import ReactDOM from 'react-dom';
type PortalProps = {
children: React.ReactElement;
};
const Portal = ({ children }: PortalProps) => {
return typeof document === 'object'
? ReactDOM.createPortal(children, document.body)
: null
}
export default Portal;