import * as React from 'react'; import Avatar from '@mui/joy/Avatar'; import Badge, { BadgeProps } from '@mui/joy/Badge'; import Box from '@mui/joy/Box'; import IconButton from '@mui/joy/IconButton'; import ArrowUpward from '@mui/icons-material/ArrowUpward'; import ArrowDownward from '@mui/icons-material/ArrowDownward'; import { HighlightedCode } from '@mui/docs/HighlightedCode'; import { BrandingProvider } from '@mui/docs/branding'; export default function BadgeAlignment() { const [anchorOrigin, setAnchorOrigin] = React.useState( { vertical: 'top', horizontal: 'right', }, ); const jsx = ` `; return ( setAnchorOrigin({ vertical: 'top', horizontal: 'left' })} sx={{ borderRadius: 'xl', position: 'absolute', top: 0, left: 0 }} > setAnchorOrigin({ vertical: 'top', horizontal: 'right' })} sx={{ borderRadius: 'xl', position: 'absolute', top: 0, right: 0 }} > setAnchorOrigin({ vertical: 'bottom', horizontal: 'left' })} sx={{ borderRadius: 'xl', position: 'absolute', bottom: 0, left: 0 }} > setAnchorOrigin({ vertical: 'bottom', horizontal: 'right' }) } sx={{ borderRadius: 'xl', position: 'absolute', bottom: 0, right: 0 }} > ); }