Native Shell
Native Shell:AI 生成的 UI,在你的应用中原生呈现,覆盖每个平台。iOS、Android、macOS、Windows 与 Linux 上的应用、GPUI 应用与网页在运行时加载已签名、沙箱隔离的 TSX 模块并绘制 th
AI 翻译
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Composable modern UI blocks for Shiny dashboards, inspired by shadcn/ui.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗shinyblocks is an experimental R package for building modern Shiny
dashboards with composable, accessible UI blocks inspired by shadcn/ui.
It is designed for R/Shiny authors who want polished dashboard layouts,
forms, overlays, navigation, theming, and runtime interactions without
adding a Node, Tailwind, Vite, or React build step to their app.
The package is not on CRAN yet, and the public API may change before the first stable release.
Documentation and component gallery
Install the development version from GitHub:
install.packages("pak")
pak::pak("nvelden/shinyblocks")
library(shiny)
library(shinyblocks)
ui <- block_page(
title = "Operations",
sidebar = block_sidebar(
title = "shinyblocks",
block_nav_item("Overview", icon = "layout-dashboard", selected = TRUE),
block_nav_item("Reports", icon = "file-text")
),
header = block_header(
"Operations dashboard",
block_dark_mode_toggle()
),
block_card(
title = "Revenue",
description = "+8% from last week",
value = "$42,100"
),
block_field(
block_field_label("Region", `for` = "region"),
block_select(
"region",
choices = c("Americas", "EMEA", "APAC"),
selected = "Americas"
)
)
)
server <- function(input, output, session) {}
shinyApp(ui, server)
Run the local showcase app from an installed package checkout:
shinyblocks::run_showcase()
The hosted documentation and gallery are available at https://nvelden.github.io/shinyblocks/.
shinyblocks can be used in Shinylive/webR apps before the package is
available through CRAN or the default webR package repositories.
Pre-built WebAssembly binaries are published on
r-universe and rebuilt
automatically from main on every push. Install at the top of your
Shinylive app.R:
if (!"shinyblocks" %in% rownames(installed.packages())) {
install.packages(
"shinyblocks",
repos = c("https://nvelden.r-universe.dev", "https://repo.r-wasm.org")
)
}
library(shiny)
library(shinyblocks)
The first Shinylive load can take a little longer while webR downloads and caches the package binaries.