-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
40 lines (37 loc) · 1.27 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import React, { useEffect, useState } from "react";
import { PreviewLink } from "./src";
const App = () => {
const [url, setUrl] = useState<string>("https://www.npmjs.com/package/eazy-time");
return (
<div style={{ display: "flex", flexDirection: "column", gap: 40 }}>
<div style={{ display: "flex", flexDirection: "row", gap: 40 }}>
<PreviewLink
key={url}
url={url}
width={490}
height={390}
margin={0}
imageCoverage={70}
direction={"vertical"}
content={{
vertical: "flex-start",
horizontal: "flex-start",
margin: 2,
gap: 6,
}}
image={{
margin: 0,
borderRadius: "10px 10px 0px 0px",
}}
/>
</div>
<div style={{ display: "flex", flexDirection: "row", gap: 40 }}>
<PreviewLink
key={url}
url={url}
/>
</div>
</div>
)
}
export default App;