instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
h.stem
comp.__module__ = doc_module
comp.__name__ = doc_file
comp.__qualname__ = doc_file
return docpage(set_path=route, t=title2)(comp)
doc_routes = [
library,
custom_components,
overview,
*components_previews_pages,
*apiref_pages,
*cloud_cliref_pages,
# * ai_builder_pag... |
# Handle index files: /folder/index/ -> /folder/
if route.endswith("/index/"):
route = route[:-7] + "/"
comp = get_component(doc, title)
# # Check if the path starts with '/docs/cloud/', and if so, replace 'docs' with an empty string
# if route.startswith("/docs/cloud/"):
# route ... | route = rx.utils.format.to_kebab_case(f"/{doc.replace('.md', '/')}") |
_path=route, t=title2)(comp)
doc_routes = [
library,
custom_components,
overview,
*components_previews_pages,
*apiref_pages,
*cloud_cliref_pages,
# * ai_builder_pages,
*cloud_pages,
]
for cloud_page in cloud_pages:
title = rx.utils.format.to_snake_case(cloud_page.title)
build_... |
comp = get_component(doc, title)
# # Check if the path starts with '/docs/cloud/', and if so, replace 'docs' with an empty string
# if route.startswith("/docs/cloud/"):
# route = route.replace("/docs", "")
if path[0] == "library" and isinstance(library, Route):
locals()["library_"] =... | if route.endswith("/index/"):
route = route[:-7] + "/" |
tes = [
library,
custom_components,
overview,
*components_previews_pages,
*apiref_pages,
*cloud_cliref_pages,
# * ai_builder_pages,
*cloud_pages,
]
for cloud_page in cloud_pages:
title = rx.utils.format.to_snake_case(cloud_page.title)
build_nested_namespace(docs_ns, ["cloud"], t... |
comp = get_component(doc, title)
# # Check if the path starts with '/docs/cloud/', and if so, replace 'docs' with an empty string
# if route.startswith("/docs/cloud/"):
# route = route.replace("/docs", "")
if path[0] == "library" and isinstance(library, Route):
locals()["library_"] =... | route = route[:-7] + "/" |
m_components,
overview,
*components_previews_pages,
*apiref_pages,
*cloud_cliref_pages,
# * ai_builder_pages,
*cloud_pages,
]
for cloud_page in cloud_pages:
title = rx.utils.format.to_snake_case(cloud_page.title)
build_nested_namespace(docs_ns, ["cloud"], title, cloud_page)
for api_rou... |
# # Check if the path starts with '/docs/cloud/', and if so, replace 'docs' with an empty string
# if route.startswith("/docs/cloud/"):
# route = route.replace("/docs", "")
if path[0] == "library" and isinstance(library, Route):
locals()["library_"] = library
# print(route)
# Ad... | comp = get_component(doc, title) |
d_page.title)
build_nested_namespace(docs_ns, ["cloud"], title, cloud_page)
for api_route in apiref_pages:
title = rx.utils.format.to_snake_case(api_route.title)
build_nested_namespace(docs_ns, ["api_reference"], title, api_route)
for ref in cloud_cliref_pages:
title = rx.utils.format.to_snake_case(re... |
# print(route)
# Add the component to the nested namespaces.
build_nested_namespace(
docs_ns, path, title, Route(path=route, title=title2, component=lambda: "")
)
if comp is not None:
if isinstance(comp, tuple):
doc_routes.extend(comp)
else:
doc_ro... | if path[0] == "library" and isinstance(library, Route):
locals()["library_"] = library |
le, cloud_page)
for api_route in apiref_pages:
title = rx.utils.format.to_snake_case(api_route.title)
build_nested_namespace(docs_ns, ["api_reference"], title, api_route)
for ref in cloud_cliref_pages:
title = rx.utils.format.to_snake_case(ref.title)
build_nested_namespace(docs_ns, ["cloud"], title, r... |
# print(route)
# Add the component to the nested namespaces.
build_nested_namespace(
docs_ns, path, title, Route(path=route, title=title2, component=lambda: "")
)
if comp is not None:
if isinstance(comp, tuple):
doc_routes.extend(comp)
else:
doc_ro... | locals()["library_"] = library |
x.utils.format.to_snake_case(ref.title)
build_nested_namespace(docs_ns, ["cloud"], title, ref)
for doc in sorted(flexdown_docs):
path = doc.split("/")[1:-1]
title = rx.utils.format.to_snake_case(os.path.basename(doc).replace(".md", ""))
title2 = to_title_case(title)
route = rx.utils.format.to_keba... |
for doc in flexdown_docs:
if "recipes" in doc:
category = doc.split("/")[2]
recipes_list[category].append(doc)
for name, ns in docs_ns.__dict__.items():
# if name == "cloud":
# print(name, ns)
locals()[name] = ns
| if comp is not None:
if isinstance(comp, tuple):
doc_routes.extend(comp)
else:
doc_routes.append(comp) |
ref.title)
build_nested_namespace(docs_ns, ["cloud"], title, ref)
for doc in sorted(flexdown_docs):
path = doc.split("/")[1:-1]
title = rx.utils.format.to_snake_case(os.path.basename(doc).replace(".md", ""))
title2 = to_title_case(title)
route = rx.utils.format.to_kebab_case(f"/{doc.replace('.md',... |
for doc in flexdown_docs:
if "recipes" in doc:
category = doc.split("/")[2]
recipes_list[category].append(doc)
for name, ns in docs_ns.__dict__.items():
# if name == "cloud":
# print(name, ns)
locals()[name] = ns
| if isinstance(comp, tuple):
doc_routes.extend(comp)
else:
doc_routes.append(comp) |
doc.split("/")[1:-1]
title = rx.utils.format.to_snake_case(os.path.basename(doc).replace(".md", ""))
title2 = to_title_case(title)
route = rx.utils.format.to_kebab_case(f"/{doc.replace('.md', '/')}")
# Handle index files: /folder/index/ -> /folder/
if route.endswith("/index/"):
route = rout... |
for name, ns in docs_ns.__dict__.items():
# if name == "cloud":
# print(name, ns)
locals()[name] = ns
| for doc in flexdown_docs:
if "recipes" in doc:
category = doc.split("/")[2]
recipes_list[category].append(doc) |
e = rx.utils.format.to_snake_case(os.path.basename(doc).replace(".md", ""))
title2 = to_title_case(title)
route = rx.utils.format.to_kebab_case(f"/{doc.replace('.md', '/')}")
# Handle index files: /folder/index/ -> /folder/
if route.endswith("/index/"):
route = route[:-7] + "/"
comp = get_c... |
for name, ns in docs_ns.__dict__.items():
# if name == "cloud":
# print(name, ns)
locals()[name] = ns
| if "recipes" in doc:
category = doc.split("/")[2]
recipes_list[category].append(doc) |
case(os.path.basename(doc).replace(".md", ""))
title2 = to_title_case(title)
route = rx.utils.format.to_kebab_case(f"/{doc.replace('.md', '/')}")
# Handle index files: /folder/index/ -> /folder/
if route.endswith("/index/"):
route = route[:-7] + "/"
comp = get_component(doc, title)
# #... |
recipes_list[category].append(doc)
for name, ns in docs_ns.__dict__.items():
# if name == "cloud":
# print(name, ns)
locals()[name] = ns
| category = doc.split("/")[2] |
(title)
route = rx.utils.format.to_kebab_case(f"/{doc.replace('.md', '/')}")
# Handle index files: /folder/index/ -> /folder/
if route.endswith("/index/"):
route = route[:-7] + "/"
comp = get_component(doc, title)
# # Check if the path starts with '/docs/cloud/', and if so, replace 'docs' ... | for name, ns in docs_ns.__dict__.items():
# if name == "cloud":
# print(name, ns)
locals()[name] = ns | |
x files: /folder/index/ -> /folder/
if route.endswith("/index/"):
route = route[:-7] + "/"
comp = get_component(doc, title)
# # Check if the path starts with '/docs/cloud/', and if so, replace 'docs' with an empty string
# if route.startswith("/docs/cloud/"):
# route = route.replace("/... | locals()[name] = ns | |
"""Plugins API reference page."""
import reflex as rx
from pcweb.templates.docpage import docpage
@docpage("/docs/api-reference/plugins/")
def plugins():
"""Plugins API reference page."""
with open("docs/api-reference/plugins.md", encoding="utf-8") as f:
|
return rx.markdown(content)
| content = f.read() |
"""Utils API reference page."""
import reflex as rx
from pcweb.templates.docpage import docpage
@docpage("/docs/api-reference/utils/")
def utils():
"""Utils API reference page."""
with open("docs/api-reference/utils.md", encoding="utf-8") as f:
|
return rx.markdown(content)
| content = f.read() |
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_features import fronten... | import reflex as rx | |
import reflex as rx
|
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_features import frontend_features
from .views.hero import hero
from .views.hosting_... | from pcweb.components.icons.patterns import index_patterns |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
|
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_features import frontend_features
from .views.hero import hero
from .views.hosting_features import hosting_features
from ... | from pcweb.meta.meta import meta_tags |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
|
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_features import frontend_features
from .views.hero import hero
from .views.hosting_features import hosting_features
from .views.os_newsletter import os_newsletter
from... | from pcweb.templates.mainpage import mainpage |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
|
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_features import frontend_features
from .views.hero import hero
from .views.hosting_features import hosting_features
from .views.os_newsletter import os_newsletter
from .views.stats import stats
@mainpage(... | from .demos.demos import demo_section |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
|
from .views.companies import companies
from .views.frontend_features import frontend_features
from .views.hero import hero
from .views.hosting_features import hosting_features
from .views.os_newsletter import os_newsletter
from .views.stats import stats
@mainpage(path="/open-source", title="Reflex · Web apps in Pure... | from .views.backend_features import backend_features |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
|
from .views.frontend_features import frontend_features
from .views.hero import hero
from .views.hosting_features import hosting_features
from .views.os_newsletter import os_newsletter
from .views.stats import stats
@mainpage(path="/open-source", title="Reflex · Web apps in Pure Python", meta=meta_tags)
def framework... | from .views.companies import companies |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
|
from .views.hero import hero
from .views.hosting_features import hosting_features
from .views.os_newsletter import os_newsletter
from .views.stats import stats
@mainpage(path="/open-source", title="Reflex · Web apps in Pure Python", meta=meta_tags)
def framework() -> rx.Component:
"""Get the main Reflex landing ... | from .views.frontend_features import frontend_features |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_feat... |
from .views.hosting_features import hosting_features
from .views.os_newsletter import os_newsletter
from .views.stats import stats
@mainpage(path="/open-source", title="Reflex · Web apps in Pure Python", meta=meta_tags)
def framework() -> rx.Component:
"""Get the main Reflex landing page."""
return rx.box(
... | from .views.hero import hero |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_feat... |
from .views.os_newsletter import os_newsletter
from .views.stats import stats
@mainpage(path="/open-source", title="Reflex · Web apps in Pure Python", meta=meta_tags)
def framework() -> rx.Component:
"""Get the main Reflex landing page."""
return rx.box(
*index_patterns(),
hero(),
dem... | from .views.hosting_features import hosting_features |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_feat... |
from .views.stats import stats
@mainpage(path="/open-source", title="Reflex · Web apps in Pure Python", meta=meta_tags)
def framework() -> rx.Component:
"""Get the main Reflex landing page."""
return rx.box(
*index_patterns(),
hero(),
demo_section(),
companies(),
front... | from .views.os_newsletter import os_newsletter |
import reflex as rx
from pcweb.components.icons.patterns import index_patterns
from pcweb.meta.meta import meta_tags
from pcweb.templates.mainpage import mainpage
from .demos.demos import demo_section
from .views.backend_features import backend_features
from .views.companies import companies
from .views.frontend_feat... |
@mainpage(path="/open-source", title="Reflex · Web apps in Pure Python", meta=meta_tags)
def framework() -> rx.Component:
"""Get the main Reflex landing page."""
return rx.box(
*index_patterns(),
hero(),
demo_section(),
companies(),
frontend_features(),
backend... | from .views.stats import stats |
@rx.memo
def index_colors() -> rx.Component:
return rx.el.style(
"""
.light,
.light-theme {
/* Slate */
--c-slate-1: #FCFCFD;
--c-slate-2: #F9F9FB;
--c-slate-3: #E8E8EC;
--c-slate-4: #E8E8EC;
--c-slate-5: #E0E1E6;
--c-slate-6: #D9D9E0;
--c-slate-7: #CDCED6;
--c-slate-8: #B9BBC6;... | import reflex as rx | |
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.demos.demos import demo_section
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# ... | import reflex as rx | |
import reflex as rx
|
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.demos.demos import demo_section
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.box(
rx.el.h... | from pcweb.components.button import button |
import reflex as rx
from pcweb.components.button import button
|
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.demos.demos import demo_section
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.box(
rx.el.h1(
"Build web apps in pure Python"... | from pcweb.components.icons.icons import get_icon |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
|
from pcweb.pages.framework.demos.demos import demo_section
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.box(
rx.el.h1(
"Build web apps in pure Python",
class_name="inline-block bg... | from pcweb.pages.docs import getting_started |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
|
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.box(
rx.el.h1(
"Build web apps in pure Python",
class_name="inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-ful... | from pcweb.pages.framework.demos.demos import demo_section |
from pcweb.components.icons.icons import get_icon
@rx.memo
def stat(stat: str, text: str) -> rx.Component:
return rx.el.section(
get_icon("feather"),
rx.box(
rx.text(
stat,
class_name="font-x-large inline-block bg-clip-text bg-gradient-to-r from-slate-... | import reflex as rx | |
import reflex as rx
|
@rx.memo
def stat(stat: str, text: str) -> rx.Component:
return rx.el.section(
get_icon("feather"),
rx.box(
rx.text(
stat,
class_name="font-x-large inline-block bg-clip-text bg-gradient-to-r from-slate-8 via-slate-9 to-slate-8 w-full text-balance text-c... | from pcweb.components.icons.icons import get_icon |
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class DemoState(rx.State... | import reflex as rx | |
import reflex as rx
|
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_de... | from pcweb.components.icons.icons import get_icon |
import reflex as rx
from pcweb.components.icons.icons import get_icon
|
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_demo(self, demo):
self.demo = demo
def t... | from .charts.charts import charts, charts_code |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
|
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_demo(self, demo):
self.demo = demo
def tab(name: str, icon: str) -> rx.Component:
is_se... | from .chatbot.chatbot import chatbot, chatbot_code |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
|
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_demo(self, demo):
self.demo = demo
def tab(name: str, icon: str) -> rx.Component:
is_selected = DemoState.demo == name
retur... | from .forms.forms import form, form_code |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
|
from .react.react import react, react_code
class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_demo(self, demo):
self.demo = demo
def tab(name: str, icon: str) -> rx.Component:
is_selected = DemoState.demo == name
return rx.box(
get_icon(icon, class_name="!text-slate-9 ... | from .image_gen.image_gen import image_gen, image_gen_code |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
|
class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_demo(self, demo):
self.demo = demo
def tab(name: str, icon: str) -> rx.Component:
is_selected = DemoState.demo == name
return rx.box(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
name,
class_nam... | from .react.react import react, react_code |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
|
def tab(name: str, icon: str) -> rx.Component:
is_selected = DemoState.demo == name
return rx.box(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
name,
class_name="box-border flex flex-row justify-center items-center gap-2 hover:bg-slate-3 px-3 py-2 h-full font-small text-slate-... | class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_demo(self, demo):
self.demo = demo |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class... |
@rx.event
def set_demo(self, demo):
self.demo = demo
def tab(name: str, icon: str) -> rx.Component:
is_selected = DemoState.demo == name
return rx.box(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
name,
class_name="box-border flex flex-row justify-center items... | demo = "Forms" |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class... |
def tab(name: str, icon: str) -> rx.Component:
is_selected = DemoState.demo == name
return rx.box(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
name,
class_name="box-border flex flex-row justify-center items-center gap-2 hover:bg-slate-3 px-3 py-2 h-full font-small text-slate-... | def set_demo(self, demo):
self.demo = demo |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class... |
def tab(name: str, icon: str) -> rx.Component:
is_selected = DemoState.demo == name
return rx.box(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
name,
class_name="box-border flex flex-row justify-center items-center gap-2 hover:bg-slate-3 px-3 py-2 h-full font-small text-slate-... | self.demo = demo |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class... |
return rx.box(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
name,
class_name="box-border flex flex-row justify-center items-center gap-2 hover:bg-slate-3 px-3 py-2 h-full font-small text-slate-9 transition-bg cursor-pointer text-nowrap"
+ rx.cond(is_selected, " bg-slate-1 lg... | is_selected = DemoState.demo == name |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from .charts.charts import charts, charts_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class... |
def preview_block() -> rx.Component:
return rx.box(
rx.text("Preview"),
class_name="flex justify-center items-center p-8 w-full h-full",
)
def demo_section(color: str = "slate") -> rx.Component:
return rx.box(
# Tabs
rx.box(
tab("Forms", "send"),
... | def code_block(code: str) -> rx.Component:
return rx._x.code_block(
code,
language="python",
class_name="demo-code-block !rounded-none !text-slate-12 no-scrollbar",
) |
_code
from .chatbot.chatbot import chatbot, chatbot_code
from .forms.forms import form, form_code
from .image_gen.image_gen import image_gen, image_gen_code
from .react.react import react, react_code
class DemoState(rx.State):
demo = "Forms"
@rx.event
def set_demo(self, demo):
self.demo = demo
... |
def demo_section(color: str = "slate") -> rx.Component:
return rx.box(
# Tabs
rx.box(
tab("Forms", "send"),
tab("Chatbot", "chat_bubble"),
tab("Image Gen", "image_ai_small"),
tab("Charts", "chart"),
tab("Custom", "code_custom"),
... | def preview_block() -> rx.Component:
return rx.box(
rx.text("Preview"),
class_name="flex justify-center items-center p-8 w-full h-full",
) |
import reflex as rx
from pcweb.components.button import button_with_icon
data = [
{
"month": "Jan",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Feb",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(... | import random | |
import random
|
from pcweb.components.button import button_with_icon
data = [
{
"month": "Jan",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Feb",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
... | import reflex as rx |
import random
import reflex as rx
|
data = [
{
"month": "Jan",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Feb",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Mar",
"Mobile": random.ra... | from pcweb.components.button import button_with_icon |
import random
import reflex as rx
from pcweb.components.button import button_with_icon
data = [
{
"month": "Jan",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Feb",
"Mobile": random.randint(100, 500),
"Desktop": ra... |
def charts():
return rx.box(
rx.el.style(
"""
.recharts-tooltip-item-unit {
display: none;
}
.recharts-tooltip-item-value {
font-family: "JetBrains Mono", monospace;
color: var(--c-slate-12);
}
.recharts-tooltip-item:first-child .recharts-tooltip-item-name {
color: var(--c-vi... | class ChartsState(rx.State):
data = data
@rx.event
def randomize_data(self):
self.data = [
{
"month": item["month"],
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
}
for item in self.data
... |
ort reflex as rx
from pcweb.components.button import button_with_icon
data = [
{
"month": "Jan",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Feb",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, ... |
@rx.event
def randomize_data(self):
self.data = [
{
"month": item["month"],
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
}
for item in self.data
]
def charts():
return rx.box(
... | data = data |
mponents.button import button_with_icon
data = [
{
"month": "Jan",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Feb",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"mon... |
def charts():
return rx.box(
rx.el.style(
"""
.recharts-tooltip-item-unit {
display: none;
}
.recharts-tooltip-item-value {
font-family: "JetBrains Mono", monospace;
color: var(--c-slate-12);
}
.recharts-tooltip-item:first-child .recharts-tooltip-item-name {
color: var(--c-vi... | def randomize_data(self):
self.data = [
{
"month": item["month"],
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
}
for item in self.data
] |
_icon
data = [
{
"month": "Jan",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Feb",
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
},
{
"month": "Mar",
"Mobile": rand... |
def charts():
return rx.box(
rx.el.style(
"""
.recharts-tooltip-item-unit {
display: none;
}
.recharts-tooltip-item-value {
font-family: "JetBrains Mono", monospace;
color: var(--c-slate-12);
}
.recharts-tooltip-item:first-child .recharts-tooltip-item-name {
color: var(--c-vi... | self.data = [
{
"month": item["month"],
"Mobile": random.randint(100, 500),
"Desktop": random.randint(400, 700),
}
for item in self.data
] |
# state.py
import os
|
from openai import AsyncOpenAI
from pcweb.components.icon_button import icon_button
class TutorialState(rx.State):
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?",
"Reflex is the open-source ... | import reflex as rx |
# state.py
import os
import reflex as rx
|
from pcweb.components.icon_button import icon_button
class TutorialState(rx.State):
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?",
"Reflex is the open-source framework empowering Python dev... | from openai import AsyncOpenAI |
# state.py
import os
import reflex as rx
from openai import AsyncOpenAI
|
class TutorialState(rx.State):
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?",
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
)
]
... | from pcweb.components.icon_button import icon_button |
# state.py
import os
import reflex as rx
from openai import AsyncOpenAI
from pcweb.components.icon_button import icon_button
class TutorialState(rx.State):
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?"... |
# Our chatbot has some brains now!
client = AsyncOpenAI(api_key=os.environ["OPENAI_API_KEY"])
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": question}],
stop=None,
temperature=0.7,
... | question = form_data["question"] |
# state.py
import os
import reflex as rx
from openai import AsyncOpenAI
from pcweb.components.icon_button import icon_button
class TutorialState(rx.State):
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?"... |
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the answer as the chatbot responds.
answer = ""
... | client = AsyncOpenAI(api_key=os.environ["OPENAI_API_KEY"]) |
# state.py
import os
import reflex as rx
from openai import AsyncOpenAI
from pcweb.components.icon_button import icon_button
class TutorialState(rx.State):
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?"... |
# Add to the answer as the chatbot responds.
answer = ""
# self.chat_history = []
async with self:
self.chat_history.append((question, answer))
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if... | session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": question}],
stop=None,
temperature=0.7,
stream=True,
) |
# state.py
import os
import reflex as rx
from openai import AsyncOpenAI
from pcweb.components.icon_button import icon_button
class TutorialState(rx.State):
# Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?"... |
# self.chat_history = []
async with self:
self.chat_history.append((question, answer))
yield
async for item in session:
if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of ... | answer = "" |
Keep track of the chat history as a list of (question, answer) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?",
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
)
]
@rx.event(background=True)
async... |
@rx.event
def clear_chat(self):
self.chat_history = []
def qa(question: str, answer: str) -> rx.Component:
return rx.box(
rx.box(
rx.text(question),
class_name="font-base text-slate-10 rounded-lg p-2 bg-slate-3 ml-[20%] text-end self-end",
),
rx.bo... | if hasattr(item.choices[0].delta, "content"):
if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break
answer += item.choices[0].delta.content
async with self:
self.c... |
) tuples.
chat_history: list[tuple[str, str]] = [
(
"What is Reflex?",
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
)
]
@rx.event(background=True)
async def submit(self, form_data: dict):
question = form_da... |
answer += item.choices[0].delta.content
async with self:
self.chat_history[-1] = (self.chat_history[-1][0], answer)
yield
@rx.event
def clear_chat(self):
self.chat_history = []
def qa(question: str, answer: str) -> rx.Component:... | if item.choices[0].delta.content is None:
# presence of 'None' indicates the end of the response
break |
async def submit(self, form_data: dict):
question = form_data["question"]
# Our chatbot has some brains now!
client = AsyncOpenAI(api_key=os.environ["OPENAI_API_KEY"])
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user",... |
yield
@rx.event
def clear_chat(self):
self.chat_history = []
def qa(question: str, answer: str) -> rx.Component:
return rx.box(
rx.box(
rx.text(question),
class_name="font-base text-slate-10 rounded-lg p-2 bg-slate-3 ml-[20%] text-end self-end"... | self.chat_history[-1] = (self.chat_history[-1][0], answer) |
has some brains now!
client = AsyncOpenAI(api_key=os.environ["OPENAI_API_KEY"])
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": question}],
stop=None,
temperature=0.7,
stream=True,
... |
def qa(question: str, answer: str) -> rx.Component:
return rx.box(
rx.box(
rx.text(question),
class_name="font-base text-slate-10 rounded-lg p-2 bg-slate-3 ml-[20%] text-end self-end",
),
rx.box(
rx.text(answer),
class_name="font-base text-v... | def clear_chat(self):
self.chat_history = [] |
client = AsyncOpenAI(api_key=os.environ["OPENAI_API_KEY"])
session = await client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": question}],
stop=None,
temperature=0.7,
stream=True,
)
# Add to the a... |
def qa(question: str, answer: str) -> rx.Component:
return rx.box(
rx.box(
rx.text(question),
class_name="font-base text-slate-10 rounded-lg p-2 bg-slate-3 ml-[20%] text-end self-end",
),
rx.box(
rx.text(answer),
class_name="font-base text-v... | self.chat_history = [] |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.signup import IndexState
def form(color: str = "slate") -> rx.Component:
return rx.box(
rx.form(
rx.box(
rx.box(
get_icon("message_form",... | from __future__ import annotations | |
from __future__ import annotations
|
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.signup import IndexState
def form(color: str = "slate") -> rx.Component:
return rx.box(
rx.form(
rx.box(
rx.box(
get_icon("message_form", class_name=f"text-{c... | import reflex as rx |
from __future__ import annotations
import reflex as rx
|
from pcweb.components.icons import get_icon
from pcweb.signup import IndexState
def form(color: str = "slate") -> rx.Component:
return rx.box(
rx.form(
rx.box(
rx.box(
get_icon("message_form", class_name=f"text-{color}-9"),
class_name="s... | from pcweb.components.button import button |
from __future__ import annotations
import reflex as rx
from pcweb.components.button import button
|
from pcweb.signup import IndexState
def form(color: str = "slate") -> rx.Component:
return rx.box(
rx.form(
rx.box(
rx.box(
get_icon("message_form", class_name=f"text-{color}-9"),
class_name="size-14 rounded-full bg-slate-5 flex items-ce... | from pcweb.components.icons import get_icon |
from __future__ import annotations
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
|
def form(color: str = "slate") -> rx.Component:
return rx.box(
rx.form(
rx.box(
rx.box(
get_icon("message_form", class_name=f"text-{color}-9"),
class_name="size-14 rounded-full bg-slate-5 flex items-center justify-center shrink-0",
... | from pcweb.signup import IndexState |
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"""Get the image fro... | import reflex as rx | |
import reflex as rx
|
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"""Get the image from the prompt."""
... | import replicate |
import reflex as rx
import replicate
|
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"""Get the image from the prompt."""
prompt = form_data["prompt"]
... | from pcweb.components.button import button |
import reflex as rx
import replicate
from pcweb.components.button import button
|
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"""Get the image from the prompt."""
prompt = form_data["prompt"]
if prompt == "":
return
... | from pcweb.components.icons import get_icon |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
if prompt == "":
return
async with self:
self.processing = True
yield
input = {"prompt": prompt}
try:
output = await replicate.async_run(
"black-forest-labs/flux-schnell",
input=input,
)
... | prompt = form_data["prompt"] |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
async with self:
self.processing = True
yield
input = {"prompt": prompt}
try:
output = await replicate.async_run(
"black-forest-labs/flux-schnell",
input=input,
)
async with self:
self.i... | if prompt == "":
return |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
yield
input = {"prompt": prompt}
try:
output = await replicate.async_run(
"black-forest-labs/flux-schnell",
input=input,
)
async with self:
self.image_url = str(output[0])
except Exception:
... | self.processing = True |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
try:
output = await replicate.async_run(
"black-forest-labs/flux-schnell",
input=input,
)
async with self:
self.image_url = str(output[0])
except Exception:
async with self:
self.image_url =... | input = {"prompt": prompt} |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
async with self:
self.image_url = str(output[0])
except Exception:
async with self:
self.image_url = ""
finally:
async with self:
self.processing = False
def image_gen() -> rx.Component:
return rx.box(
rx.... | output = await replicate.async_run(
"black-forest-labs/flux-schnell",
input=input,
) |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
except Exception:
async with self:
self.image_url = ""
finally:
async with self:
self.processing = False
def image_gen() -> rx.Component:
return rx.box(
rx.skeleton(
rx.box(
rx.cond(
Im... | self.image_url = str(output[0]) |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
finally:
async with self:
self.processing = False
def image_gen() -> rx.Component:
return rx.box(
rx.skeleton(
rx.box(
rx.cond(
ImageGenState.image_url,
rx.image(
src=ImageGenSt... | self.image_url = "" |
import reflex as rx
import replicate
from pcweb.components.button import button
from pcweb.components.icons import get_icon
class ImageGenState(rx.State):
"""The app state."""
image_url: str = ""
processing: bool = False
@rx.event(background=True)
async def get_image(self, form_data):
"... |
def image_gen() -> rx.Component:
return rx.box(
rx.skeleton(
rx.box(
rx.cond(
ImageGenState.image_url,
rx.image(
src=ImageGenState.image_url,
class_name="w-auto h-auto object-contain object... | self.processing = False |
class Spline(rx.Component):
"""Spline component."""
# The name of the npm package.
library = "@splinetool/react-spline"
# Any additional libraries needed to use the component.
lib_dependencies: list[str] = ["@splinetool/runtime@1.5.5"]
# The name of the component to use from the package.
... | import reflex as rx | |
import reflex as rx
class Spline(rx.Component):
"""Spline component."""
# The name of the npm package.
|
# Any additional libraries needed to use the component.
lib_dependencies: list[str] = ["@splinetool/runtime@1.5.5"]
# The name of the component to use from the package.
tag = "Spline"
# Spline is a default export from the module.
is_default = True
# Class name for the component.
cla... | library = "@splinetool/react-spline" |
import reflex as rx
class Spline(rx.Component):
"""Spline component."""
# The name of the npm package.
library = "@splinetool/react-spline"
# Any additional libraries needed to use the component.
lib_dependencies: list[str] = ["@splinetool/runtime@1.5.5"]
# The name of the component to use ... |
# Spline is a default export from the module.
is_default = True
# Class name for the component.
class_name: rx.Var[str] = "rounded-[1.125rem]"
# Any props that the component takes.
scene: rx.Var[str]
# Convenience function to create the Spline component.
spline = Spline.create
# Use the ... | tag = "Spline" |
import reflex as rx
class Spline(rx.Component):
"""Spline component."""
# The name of the npm package.
library = "@splinetool/react-spline"
# Any additional libraries needed to use the component.
lib_dependencies: list[str] = ["@splinetool/runtime@1.5.5"]
# The name of the component to use ... |
# Class name for the component.
class_name: rx.Var[str] = "rounded-[1.125rem]"
# Any props that the component takes.
scene: rx.Var[str]
# Convenience function to create the Spline component.
spline = Spline.create
# Use the Spline component in your app.
def react():
return rx.box(
spl... | is_default = True |
import reflex as rx
class Spline(rx.Component):
"""Spline component."""
# The name of the npm package.
library = "@splinetool/react-spline"
# Any additional libraries needed to use the component.
lib_dependencies: list[str] = ["@splinetool/runtime@1.5.5"]
# The name of the component to use ... |
# Use the Spline component in your app.
def react():
return rx.box(
spline(
scene="https://prod.spline.design/1eapv4LnOygEqB66/scene.splinecode",
),
class_name="p-4 lg:px-10 lg:py-12 h-full overflow-hidden",
)
react_code = """import reflex as rx
class Spline(rx.Componen... | spline = Spline.create |
from pcweb.components.icons.patterns import get_icon
def pip_install_card() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg width="320" height="120" viewBox="0 0 320 120" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M320 60C320 93.1371 248.366 120 160 120C71.6344 ... | import reflex as rx | |
import reflex as rx
|
def pip_install_card() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg width="320" height="120" viewBox="0 0 320 120" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M320 60C320 93.1371 248.366 120 160 120C71.6344 120 0 93.1371 0 60C0 26.8629 71.6344 0 160 0C248.366 0... | from pcweb.components.icons.patterns import get_icon |
lass_name="shrink-0 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-[-2] pointer-events-none",
),
# Pip install
rx.el.button(
get_icon("copy_pip", class_name="!text-violet-9"),
rx.el.p(
"$ pip install reflex",
class_... |
def backend_grid() -> rx.Component:
return rx.box(
rx.box(
rx.el.h2(
"Skip the boilerplate",
class_name="font-x-large text-slate-12 text-balance lg:text-nowrap",
),
rx.el.p(
"Seamless frontend-backend integration",
... | def backend_card(
title: str,
description: str,
icon: str,
cols: str = "1",
class_name: str = "",
) -> rx.Component:
return rx.box(
rx.box(
rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.el.h3(title, class_name="font-base text-slate-9")... |
title="PyPI",
description="Use any Python library with Reflex",
icon="package",
),
backend_card(
title="Database management",
description="Use our built-in database or connect your own with a single line",
icon="backend_db",
... | def backend_features() -> rx.Component:
return rx.el.section(
rx.box(
backend_grid(),
class_name="flex flex-row max-w-[64.19rem] justify-center w-full",
),
class_name="flex flex-col justify-center items-center",
) | |
def logo(path: str, height: str) -> rx.Component:
return rx.fragment(
rx.image(
src=f"/companies/light/{path}.svg",
alt=f"{path} logo",
loading="lazy",
height=height,
class_name="shrink-0 dark:hidden",
),
rx.image(
sr... | import reflex as rx | |
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
from pcweb.constants import DISCORD_URL
from pcweb.pages.docs import hosting
def card(
icon: str, heading: str, content: str, button_text: str, link: str
) -> rx.Component:
return rx.box(
get_icon(icon, clas... | import reflex as rx | |
import reflex as rx
|
from pcweb.components.icons.icons import get_icon
from pcweb.constants import DISCORD_URL
from pcweb.pages.docs import hosting
def card(
icon: str, heading: str, content: str, button_text: str, link: str
) -> rx.Component:
return rx.box(
get_icon(icon, class_name="!justify-start"),
rx.box(
... | from pcweb.components.button import button |
import reflex as rx
from pcweb.components.button import button
|
from pcweb.constants import DISCORD_URL
from pcweb.pages.docs import hosting
def card(
icon: str, heading: str, content: str, button_text: str, link: str
) -> rx.Component:
return rx.box(
get_icon(icon, class_name="!justify-start"),
rx.box(
rx.text(heading, class_name="font-md-smb... | from pcweb.components.icons.icons import get_icon |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
|
from pcweb.pages.docs import hosting
def card(
icon: str, heading: str, content: str, button_text: str, link: str
) -> rx.Component:
return rx.box(
get_icon(icon, class_name="!justify-start"),
rx.box(
rx.text(heading, class_name="font-md-smbold text-slate-11"),
rx.text... | from pcweb.constants import DISCORD_URL |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
from pcweb.constants import DISCORD_URL
|
def card(
icon: str, heading: str, content: str, button_text: str, link: str
) -> rx.Component:
return rx.box(
get_icon(icon, class_name="!justify-start"),
rx.box(
rx.text(heading, class_name="font-md-smbold text-slate-11"),
rx.text(content, class_name="font-small text... | from pcweb.pages.docs import hosting |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.