@julseb-lib/react 0.0.95 → 0.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,7 +31,9 @@ import type { ILibCard } from "./types"
|
|
|
31
31
|
* @param {"xxl" | "xl" | "l" | "m" | "s" | "xs" | "round" | "circle" | number | Object} [props.borderRadius] - Border radius for the card.
|
|
32
32
|
* @param {CssCursor} [props.cursor] - Cursor style.
|
|
33
33
|
* @param {string|number} [props.width="100%"] - Width of the card.
|
|
34
|
+
* @param {string|number} [props.maxWidth="100%"] - Max width of the card.
|
|
34
35
|
* @param {string|number} [props.height] - Height of the card.
|
|
36
|
+
* @param {string|number} [props.maxHeight] - Max height of the card.
|
|
35
37
|
* @param {"xxl" | "xl" | "l" | "m" | "s" | "xs" | Object} [props.shadow] - Shadow style.
|
|
36
38
|
* @param {string} [props.backgroundColor="background"] - Background color.
|
|
37
39
|
* @param {string} [props.textColor="font"] - Text color.
|
|
@@ -16,6 +16,8 @@ import type { ILibMeta } from "./types"
|
|
|
16
16
|
* @param {string} [props.cover] - Open Graph image URL.
|
|
17
17
|
* @param {string} [props.siteName] - Open Graph site name.
|
|
18
18
|
* @param {string} [props.language] - Document language (used for <html lang=""> and og:locale).
|
|
19
|
+
* @param {string} [props.url] - Canonical URL for the page.
|
|
20
|
+
* @param {string} [props.email] - Contact email for the page.
|
|
19
21
|
* @returns {JSX.Element} The rendered meta tags.
|
|
20
22
|
*
|
|
21
23
|
* @see https://documentation-components-react.vercel.app/components/meta
|
|
@@ -30,6 +32,8 @@ import type { ILibMeta } from "./types"
|
|
|
30
32
|
* cover="/cover.png"
|
|
31
33
|
* siteName="My Site"
|
|
32
34
|
* language="en"
|
|
35
|
+
* url="https://mysite.com"
|
|
36
|
+
* email="me@mysite.com"
|
|
33
37
|
* />
|
|
34
38
|
*/
|
|
35
39
|
export const Meta: FC<ILibMeta> = ({
|
|
@@ -43,27 +47,50 @@ export const Meta: FC<ILibMeta> = ({
|
|
|
43
47
|
cover,
|
|
44
48
|
siteName,
|
|
45
49
|
language,
|
|
50
|
+
url,
|
|
51
|
+
email,
|
|
46
52
|
}) => {
|
|
47
53
|
return (
|
|
48
54
|
<>
|
|
49
55
|
<title>{title}</title>
|
|
50
|
-
<meta
|
|
56
|
+
<meta httpEquiv="Content-Type" content="text/html;charset=UTF-8" />
|
|
51
57
|
<meta
|
|
52
|
-
content="width=device-width, initial-scale=1"
|
|
53
58
|
name="viewport"
|
|
59
|
+
content="width=device-width, initial-scale=1.0"
|
|
54
60
|
/>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
<meta name="description" content={description} />
|
|
62
|
+
<link rel="shortcut icon" href={favicon} type="image/x-icon" />
|
|
63
|
+
<link rel="icon" href={favicon} />
|
|
64
|
+
<meta name="author" content={author} />
|
|
65
|
+
<meta name="keywords" content={keywords?.join(",")} />
|
|
66
|
+
|
|
67
|
+
<meta name="application-name" content={siteName} />
|
|
68
|
+
<meta name="referrer" content="origin" />
|
|
69
|
+
<meta name="creator" content={author} />
|
|
70
|
+
<meta name="publisher" content={author} />
|
|
71
|
+
<meta name="category" content={type} />
|
|
72
|
+
|
|
62
73
|
<meta property="og:title" content={title} />
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
<meta property="og:description" content={description} />
|
|
75
|
+
<meta property="og:type" content={type} />
|
|
76
|
+
<meta property="og:image" content={cover} />
|
|
77
|
+
<meta property="og:site_name" content={siteName} />
|
|
78
|
+
<meta property="og:locale" content={language} />
|
|
79
|
+
<meta property="og:url" content={url} />
|
|
80
|
+
<meta property="og:site_name" content={siteName} />
|
|
81
|
+
<meta property="og:locale" content={language} />
|
|
82
|
+
<meta property="og:image" content={cover} />
|
|
83
|
+
<meta property="og:email" content={email} />
|
|
84
|
+
<meta property="og:type" content={type} />
|
|
85
|
+
|
|
86
|
+
<meta name="twitter:card" content="summary" />
|
|
87
|
+
<meta name="twitter:site" content={url} />
|
|
88
|
+
<meta name="twitter:creator" content={author} />
|
|
89
|
+
<meta name="twitter:title" content={siteName} />
|
|
90
|
+
<meta name="twitter:description" content={description} />
|
|
91
|
+
<meta name="twitter:image" content={cover} />
|
|
92
|
+
|
|
93
|
+
{children}
|
|
67
94
|
</>
|
|
68
95
|
)
|
|
69
96
|
}
|