<AbsoluteFill>
A helper component - it is an absolutely positioned <div> with the following styles:
css.absolute-fill {top: 0;left: 0;right: 0;bottom: 0;width: 100%;height: 100%;display: flex;flex-direction: column;}
css.absolute-fill {top: 0;left: 0;right: 0;bottom: 0;width: 100%;height: 100%;display: flex;flex-direction: column;}
Adding a ref
You can add a React ref to an <AbsoluteFill> from version v3.2.13 on. If you use TypeScript, you need to type it with HTMLDivElement:
tsxconstMyComp = () => {constref =useRef <HTMLDivElement >(null);return <AbsoluteFill ref ={ref }>{content }</AbsoluteFill >;};
tsxconstMyComp = () => {constref =useRef <HTMLDivElement >(null);return <AbsoluteFill ref ={ref }>{content }</AbsoluteFill >;};