I'm currently creating a chip in my local environment that only appears when using our application's staging environment. I can't get this chip from the material UI to show up in the top right corner of the app (works on desktop ui). If you need more information, please contact us! Here is my .jsx file:
import React from 'react' import Chip from '@material-ui/core/Chip' const StagingChip = () => ( <> <div> <Chip label="Staging" color='info'/> </div> </> ) export default StagingChip
As I understand it, you need to design the chip to have fixed positions and then assign top: 0 and right: 0
https://css-tricks.com/almanac/properties/p/location/
You can also do this directly in the
jsx
file:div
element, add thestyle
attribute todiv
style={{position: 'fixed', top: 0 , right: 0}}
Chip
, add thesx
attribute to theChip
sx={{position: 'fixed', top: 0, right: 0}}
This is
position:fixed
Solution: