Files
grungnet/src/components/dice/DiceButtonCount.tsx
T

30 lines
595 B
TypeScript
Raw Normal View History

2020-05-14 16:48:13 +10:00
import React from "react";
import { Box, Text } from "theme-ui";
2021-07-09 16:22:35 +10:00
function DiceButtonCount({ children }: { children: React.ReactNode }) {
2020-05-14 16:48:13 +10:00
return (
<Box
sx={{
position: "absolute",
top: "50%",
right: "90%",
transform: "translateY(-50%)",
2020-05-14 16:48:13 +10:00
height: "14px",
display: "flex",
alignItems: "center",
}}
>
<Text
variant="caption"
as="p"
color="text"
sx={{ fontSize: "10px", fontWeight: "bold" }}
>
{children}
2020-05-14 16:48:13 +10:00
</Text>
</Box>
);
}
export default DiceButtonCount;