mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
start adding response parsing & ui elements
This commit is contained in:
24
hyperglass/ui/components/Table/TableBody.js
Normal file
24
hyperglass/ui/components/Table/TableBody.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as React from "react";
|
||||
import { Box } from "@chakra-ui/core";
|
||||
import css from "@styled-system/css";
|
||||
|
||||
const TableBody = ({ children, ...props }) => {
|
||||
return (
|
||||
<Box
|
||||
as="tbody"
|
||||
overflowY="scroll"
|
||||
css={css({
|
||||
"&::-webkit-scrollbar": { display: "none" },
|
||||
"&": { "-ms-overflow-style": "none" }
|
||||
})}
|
||||
overflowX="hidden"
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
TableBody.displayName = "TableBody";
|
||||
|
||||
export default TableBody;
|
Reference in New Issue
Block a user