-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added scrollable table example for alex
- Loading branch information
1 parent
ae2ed64
commit fea344a
Showing
3 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { styled } from '@stitches/react'; | ||
|
||
const Shell = styled("div", { | ||
width: "100%", | ||
height: "fit-content", | ||
display: "grid", | ||
backgroundColor: "#F8F9FA", | ||
// overflow: "clip", | ||
gridTemplateRows: "auto 1fr", | ||
gap: "24px" | ||
}) | ||
|
||
const Heading = styled("p", { | ||
width: "100%", | ||
height: "fit-content", | ||
color: "black", | ||
fontSize: "32px" | ||
}) | ||
|
||
const Data = styled("div", { | ||
width: "100%", | ||
overflowY: "scroll", | ||
height: "fit-content", | ||
display: "flex", | ||
backgroundColor: "#F8F9FA", | ||
gap: "8px", | ||
boxShadow: "0 0 0 2px black", | ||
borderRadius: "12px", | ||
padding: "6px" | ||
}) | ||
|
||
const Box = styled("div", {backgroundColor: "red", width: "200px", height: "200px", flexShrink: 0}) | ||
|
||
|
||
|
||
function Table() { | ||
return ( | ||
<Shell> | ||
<Heading>Proxies</Heading> | ||
<Data> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
<Box/> | ||
</Data> | ||
</Shell> | ||
) | ||
} | ||
|
||
export default Table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters