CenterCenters content vertically and horizontallyImportimport { Center } from '@mantine/core';SourceView source codeDocsEdit this pagePackage@mantine/coreDocumentationComponent propsStyles APIUsageAll elements inside Center are centeredimport { Center } from '@mantine/core'; function Demo() { return ( <Center style={{ width: 400, height: 200 }}> <div>All elements inside Center are centered</div> </Center> );}InlineTo use center with inline elements set inline prop. For example, you can center link icon and label:Back to Mantine websiteimport { Center, Anchor, Box } from '@mantine/core';import { ArrowLeft } from 'tabler-icons-react'; function Demo() { return ( <Anchor href="https://mantine.dev" target="_blank"> <Center inline> <ArrowLeft size={14} /> <Box ml={5}>Back to Mantine website</Box> </Center> </Anchor> );}Go backAspectRatio – @mantine/coreUp nextContainer – @mantine/coreTable of contentsUsageInlineBuild fully functional accessible web applications faster than everAboutContributeMedia assetsChangelogReleasesCommunityChat on DiscordFollow on TwitterFollow on GithubGitHub discussionsProjectMantine UIDocumentationGithub organizationnpm organizationBuilt by Vitaly Rtishchev and these awesome peopleJoin Discord communityFollow Mantine on Twitter