AffixRender react node inside portal at fixed positionImportimport { Affix } from '@mantine/core';SourceView source codeDocsEdit this pagePackage@mantine/coreDocumentationComponent propsStyles APIUsageAffix renders div element with fixed position inside Portal component. Use component to display elements fixed at any position on screen, for example, scroll to top button:Affix is located at the bottom of the screen, scroll to see itimport { ArrowUpIcon } from '@modulz/radix-icons';import { useWindowScroll } from '@mantine/hooks';import { Affix, Button, Text, Transition } from '@mantine/core'; function Demo() { const [scroll, scrollTo] = useWindowScroll(); return ( <> <Text align="center">Affix is located at the bottom of the screen, scroll to see it</Text> <Affix position={{ bottom: 20, right: 20 }}> <Transition transition="slide-up" mounted={scroll.y > 0}> {(transitionStyles) => ( <Button leftIcon={<ArrowUpIcon />} style={transitionStyles} onClick={() => scrollTo({ y: 0 })} > Scroll to top </Button> )} </Transition> </Affix> </> );}Go backTimeline – @mantine/coreUp nextDialog – @mantine/coreTable of contentsUsageBuild fully functional accessible web applications faster than everProjectContribute to MantineMedia assetsChangelogReleasesCommunityJoin Discord communityFollow on TwitterEmail newsletterGitHub discussionsFeedbackYour feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done goodLeave feedbackBuilt by Vitaly Rtishchev and these awesome peopleJoin Discord communityFollow Mantine on Twitter