mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-08-23 20:56:19 +01:00
20 lines
361 B
JavaScript
20 lines
361 B
JavaScript
import { Box } from './Box';
|
|
|
|
export const Dimmer = props => {
|
|
const { style, ...rest } = props;
|
|
return (
|
|
<Box
|
|
style={{
|
|
position: 'absolute',
|
|
top: 0,
|
|
bottom: 0,
|
|
left: 0,
|
|
right: 0,
|
|
'background-color': 'rgba(0, 0, 0, 0.75)',
|
|
'z-index': 1,
|
|
...style,
|
|
}}
|
|
{...rest} />
|
|
);
|
|
};
|