
* delete most references to varr * [REF-3562][REF-3563] Replace chakra usage (#3872) * only one mention of var * delete vars.py why not * remove reflex.vars * rename immutable var to var * rename ivars to vars * add vars back smh * ruff * no more create_safe * reorder deprecated * remove raises * remove all Var.create * move to new api * fix unit tests * fix pyi hopefully * sort literals * fix event handler issues * update poetry * fix silly issues i'm very silly * add var_operation_return * rename immutable to not immutable * add str type * it's ruff out there --------- Co-authored-by: Elijah Ahianyo <elijahahianyo@gmail.com>
44 lines
933 B
Python
44 lines
933 B
Python
"""Display the title of the current page."""
|
|
|
|
from reflex.components.component import Component
|
|
from reflex.vars.base import Var
|
|
|
|
|
|
class RawLink(Component):
|
|
"""A component that displays the title of the current page."""
|
|
|
|
tag = "link"
|
|
|
|
# The href.
|
|
href: Var[str]
|
|
|
|
# The type of link.
|
|
rel: Var[str]
|
|
|
|
|
|
class ScriptTag(Component):
|
|
"""A script tag with the specified type and source."""
|
|
|
|
tag = "script"
|
|
|
|
# The type of script represented.
|
|
type_: Var[str]
|
|
|
|
# The URI of an external script.
|
|
source: Var[str]
|
|
|
|
# Metadata to verify the content of the script.
|
|
integrity: Var[str]
|
|
|
|
# Whether to allow cross-origin requests.
|
|
crossorigin: Var[str]
|
|
|
|
# Indicates which referrer to send when fetching the script.
|
|
referrer_policy: Var[str]
|
|
|
|
# Whether to asynchronously load the script.
|
|
is_async: Var[bool]
|
|
|
|
# Whether to defer loading the script.
|
|
defer: Var[bool]
|