Skip to content

Commit 76627c2

Browse files
authored
Add comments to html metadata component (#3731)
1 parent ad14f38 commit 76627c2

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

reflex/components/el/elements/metadata.py

+26-1
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,49 @@ class Link(BaseHTML): # noqa: E742
2929

3030
tag = "link"
3131

32+
# Specifies the CORS settings for the linked resource
3233
cross_origin: Var[Union[str, int, bool]]
34+
35+
# Specifies the URL of the linked document/resource
3336
href: Var[Union[str, int, bool]]
37+
38+
# Specifies the language of the text in the linked document
3439
href_lang: Var[Union[str, int, bool]]
40+
41+
# Allows a browser to check the fetched link for integrity
3542
integrity: Var[Union[str, int, bool]]
43+
44+
# Specifies on what device the linked document will be displayed
3645
media: Var[Union[str, int, bool]]
46+
47+
# Specifies the referrer policy of the linked document
3748
referrer_policy: Var[Union[str, int, bool]]
49+
50+
# Specifies the relationship between the current document and the linked one
3851
rel: Var[Union[str, int, bool]]
52+
53+
# Specifies the sizes of icons for visual media
3954
sizes: Var[Union[str, int, bool]]
55+
56+
# Specifies the MIME type of the linked document
4057
type: Var[Union[str, int, bool]]
4158

4259

4360
class Meta(BaseHTML): # Inherits common attributes from BaseHTML
4461
"""Display the meta element."""
4562

46-
tag = "meta"
63+
tag = "meta" # The HTML tag for this element is <meta>
64+
65+
# Specifies the character encoding for the HTML document
4766
char_set: Var[Union[str, int, bool]]
67+
68+
# Defines the content of the metadata
4869
content: Var[Union[str, int, bool]]
70+
71+
# Provides an HTTP header for the information/value of the content attribute
4972
http_equiv: Var[Union[str, int, bool]]
73+
74+
# Specifies a name for the metadata
5075
name: Var[Union[str, int, bool]]
5176

5277

reflex/components/el/elements/metadata.pyi

+13
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,15 @@ class Link(BaseHTML):
346346
347347
Args:
348348
*children: The children of the component.
349+
cross_origin: Specifies the CORS settings for the linked resource
350+
href: Specifies the URL of the linked document/resource
351+
href_lang: Specifies the language of the text in the linked document
352+
integrity: Allows a browser to check the fetched link for integrity
353+
media: Specifies on what device the linked document will be displayed
354+
referrer_policy: Specifies the referrer policy of the linked document
355+
rel: Specifies the relationship between the current document and the linked one
356+
sizes: Specifies the sizes of icons for visual media
357+
type: Specifies the MIME type of the linked document
349358
access_key: Provides a hint for generating a keyboard shortcut for the current element.
350359
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
351360
content_editable: Indicates whether the element's content is editable.
@@ -466,6 +475,10 @@ class Meta(BaseHTML):
466475
467476
Args:
468477
*children: The children of the component.
478+
char_set: Specifies the character encoding for the HTML document
479+
content: Defines the content of the metadata
480+
http_equiv: Provides an HTTP header for the information/value of the content attribute
481+
name: Specifies a name for the metadata
469482
access_key: Provides a hint for generating a keyboard shortcut for the current element.
470483
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
471484
content_editable: Indicates whether the element's content is editable.

0 commit comments

Comments
 (0)