react-virtualized-sticky-tree
Version:
A React component for efficiently rendering tree like structures with support for position: sticky
39 lines (35 loc) • 851 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<style>body, html {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.node-row {
color: #FFF;
line-height: 30px;
padding-left: 10px;
box-sizing: border-box;
height: 30px;
width: calc(100vw - 30px) ;
}
.rv-sticky-node-list {
margin-left: 10px;
box-sizing: border-box;
}
.sticky-tree-wrapper {
box-sizing: border-box;
height: 100vh;
}
</style>
<title>React Virtualized Sticky Tree Example</title>
</head>
<body>
<div id="app"></div>
</body>
</html>