import React, { useState } from 'react' import { Button, Container, Typography, Popper } from '@toptal/picasso' import { SPACING_4 } from '@toptal/picasso-utils' const Example = () => { const [anchorEl, setAnchorEl] = useState(null) const open = Boolean(anchorEl) const handleClick = (event: React.MouseEvent) => { setAnchorEl(open ? null : event.currentTarget) } return ( The box below has overflow: hidden. With{' '} disablePortal the Popper renders inline and gets clipped. Without it, the Popper escapes to the document root via a portal.
Clipped by overflow: hidden
) } export default Example