Update KeyboardShortcutLabel.tsx
This commit is contained in:
@@ -1,20 +1,21 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Box, Typography } from '@mui/material';
|
import { Box, Paper, Typography } from '@mui/material';
|
||||||
import { blueGrey } from '@mui/material/colors';
|
import { blueGrey } from '@mui/material/colors';
|
||||||
|
|
||||||
export default function KeyboardShortcutLabel({ label }: { label: string }) {
|
export default function KeyboardShortcutLabel({ label }: { label: string }) {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Paper
|
||||||
|
elevation={0}
|
||||||
|
variant={'outlined'}
|
||||||
sx={{
|
sx={{
|
||||||
px: 1,
|
px: 1,
|
||||||
py: 0.25,
|
py: 0.25,
|
||||||
border: `1px solid`,
|
border: `1px solid`,
|
||||||
bgcolor: blueGrey[50],
|
bgcolor: blueGrey[50],
|
||||||
boxShadow: 1,
|
|
||||||
color: blueGrey[300],
|
color: blueGrey[300],
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="caption">{label}</Typography>
|
<Typography variant="caption">{label}</Typography>
|
||||||
</Box>
|
</Paper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user