Rask.Ui
0.24.0
See the version list below for details.
dotnet add package Rask.Ui --version 0.24.0
NuGet\Install-Package Rask.Ui -Version 0.24.0
<PackageReference Include="Rask.Ui" Version="0.24.0" />
<PackageVersion Include="Rask.Ui" Version="0.24.0" />
<PackageReference Include="Rask.Ui" />
paket add Rask.Ui --version 0.24.0
#r "nuget: Rask.Ui, 0.24.0"
#:package Rask.Ui@0.24.0
#addin nuget:?package=Rask.Ui&version=0.24.0
#tool nuget:?package=Rask.Ui&version=0.24.0
Rask.Ui
Flux UI's component catalogue, as typed C# components for the Rask framework — the operator console, the landing site and the docs showcase all draw with these.
- Flux's names, Flux's look. Each component is built from Flux UI's public docs, measured in a browser
in light and dark and held to them by a parity test:
flux:button variant="primary" size="sm"isUi.Button.Primary.Sm, and Flux's documentation reads as the documentation for what these render. - The stylesheet comes with it. Tailwind scans the project it runs in, so a compiled library's
class names are invisible to your Tailwind build and would emit nothing. This package compiles its
own sheet and hands it to you. No npm install, no Tailwind configuration, no
_content/path to map. - Ships no JavaScript — but for the rich text editor and the phone field, whose engines (Tiptap, intl-tel-input) are scripts a page fetches only when it draws one. Where the platform can own the interaction it does: a dialog is a real modal
<dialog>opened by an invoker command, so the browser supplies the top layer, the inert page, Escape and a native backdrop. Where it cannot, the component asks Rask's runtime by attribute (a click outside a modal, the page held still behind it), or the state is a field in C# and redraws through the live diff. - Mobile-first, not merely responsive. Every control takes a 44px touch target below
sm; a dialog is a bottom sheet on a phone and a centred card above it, because a centred dialog at 360px either overflows or shrinks its content past reading. - Every control has a name. A label is required rather than optional, and it becomes the accessible name rather than a placeholder — which disappears the moment typing starts.
- Dark mode, and re-skinned by tokens rather than overrides.
Ui.AppearanceScriptputs adarkclass on<html>before the first paint (light, dark or system, remembered) —RaskAppand the WASM host write it on every page; re-point--color-zinc-*and Flux's--color-accent,--color-accent-contentand--color-accent-foregroundin your own@themeand every component follows.
Use
dotnet add package Rask.Ui
An app that runs Tailwind compiles the kit into its own stylesheet — one sheet, as a Flux app has.
One line in Styles/app.css, in place of @import "tailwindcss";:
@import "./vendor/rask-ui.css";
That is Tailwind, the kit's theme and dark variant, and every class its components write, compiled
beside the classes you write. The build puts the files in Styles/vendor/ (no npm, no node_modules;
do not commit them), and on RaskApp (Rask.Server) or the WASM host (Rask.Wasm) that is all: the
host links your css/app.css and writes the dark-mode script. A hand-wired host does both itself:
protected override Component? HeadAssets =>
[
Ui.AppearanceScript, // dark mode, before the first paint
Link.Rel("stylesheet").Href("/css/app.css"), // the ONE sheet: Tailwind, the kit, your classes
];
A surface with no Tailwind build of its own takes the precompiled sheet instead: set
<RaskUiWriteStylesheet>true</RaskUiWriteStylesheet> and link UiStylesheet.Href(), or inline
UiStylesheet.Css. Never both — two sheets each carry an @layer utilities ranked by link order
alone, so an app's bg-white beats the kit's dark:bg-zinc-800, and the build stops on the pairing.
The typeface comes with it too. The kit is drawn in Inter (OFL 1.1):
its theme names "Inter" first in --font-sans, and every app's build copies the variable face, cut at
latin and latin-ext, into wwwroot/fonts (inter-latin.woff2, inter-latin-ext.woff2, with
inter.LICENSE.txt), where the kit's @font-face rules ask for it. An app that serves its own face says
<RaskUiWriteFonts>false</RaskUiWriteFonts>, and the system stack after Inter draws until it re-points
--font-sans in its own @theme.
protected override Component? Render() =>
[
Ui.Button.Primary.Icon(Ui.IconName.Check)["Save"],
// No handler: the trigger's button opens the modal of that name, as the browser's own modal dialog.
Ui.ModalTrigger.Name("confirm")[Ui.Button["Delete"]],
Ui.Modal.Name("confirm")[
P["This cannot be undone."],
Ui.ModalClose[Ui.Button["Cancel"]]
],
// Every data-input control is an IFormControl<T>: Value opens the controlled chain and Bind the
// bound one, and the opening step fixes the value type and the mode together.
Ui.Input.Value(_email).Label("Email").Type(InputType.Email)
.Invalid(!_email.Contains('@'))
.OnChange(value => _email = value),
Ui.Accordion.Exclusive()[
Ui.AccordionItem.Heading("Shipping")["Two working days."],
Ui.AccordionItem.Heading("Payment")["Card or transfer."]
],
];
Re-skin by redefining a token in your own @theme, after the import. The kit itself carries no
preflight and no html/body rules — your application owns its document; in an app's sheet the
reset is Tailwind's own, which the import brings.
What is in it
| Actions | Ui.Button Ui.ButtonGroup Ui.Dropdown Ui.Menu Ui.Navmenu Ui.Context Ui.Modal Ui.ModalTrigger Ui.ModalClose |
| Data display | Ui.Accordion Ui.AccordionItem Ui.Avatar Ui.AvatarGroup Ui.Badge Ui.BadgeClose Ui.Card (Ui.CardHeader Ui.CardHeading Ui.CardSubheading Ui.CardActions Ui.CardBody Ui.CardFooter Ui.CardBleed) Ui.Carousel (Ui.CarouselSlide Ui.CarouselControls) Ui.Flag Ui.Kanban (with Ui.KanbanColumn Ui.KanbanColumnHeader Ui.KanbanColumnCards Ui.KanbanColumnFooter Ui.KanbanCard) Ui.Table (with Ui.TableColumns Ui.TableColumn Ui.TableRows Ui.TableRow Ui.TableCell) Ui.Timeline (+ Item Indicator Content Block Subgrid) |
| Navigation | Ui.Navbar Ui.Navlist Ui.Brand Ui.Profile Ui.Breadcrumbs Ui.Link Ui.Pagination Ui.TabGroup Ui.Tabs Ui.Tab Ui.TabPanel |
| Feedback | Ui.Callout Ui.Progress Ui.Skeleton Ui.SkeletonLine Ui.SkeletonGroup Ui.Toast Ui.ToastGroup Ui.Tooltip Ui.TooltipContent (Flux's tooltip: hover, focus or Toggleable, wired to its trigger for screen readers) |
| Data input | Ui.Input Ui.InputGroup Ui.InputGroupPrefix Ui.InputGroupSuffix Ui.Textarea Ui.ColorPicker (Ui.ColorPickerArea Ui.ColorPickerSlider Ui.ColorPickerInput Ui.ColorPickerSwatches Ui.ColorPickerSwatch Ui.ColorPickerDropper) Ui.Select (Ui.SelectOption Ui.SelectGroup Ui.SelectOptionCreate Ui.SelectOptionEmpty Ui.SelectButton Ui.SelectInput Ui.SelectSearch) Ui.Autocomplete (Ui.AutocompleteItem) Ui.Pillbox (Ui.PillboxOption Ui.PillboxOptionCreate Ui.PillboxOptionEmpty Ui.PillboxSearch Ui.PillboxTrigger Ui.PillboxInput) Ui.FileUpload (Ui.FileUploadDropzone Ui.FileItem Ui.FileItemRemove) Ui.Checkbox Ui.CheckboxGroup Ui.CheckboxAll Ui.CheckboxIndicator Ui.RadioGroup Ui.Radio Ui.RadioIndicator Ui.Switch Ui.Toggle Ui.Slider Ui.SliderTick Ui.Field Ui.Label Ui.Description Ui.Error Ui.Fieldset Ui.Legend Ui.Otp Ui.OtpInput Ui.OtpSeparator Ui.OtpGroup Ui.Phone (Flux's phone field on intl-tel-input; its engine is a separate script the build writes to wwwroot/js, fetched only by a page that draws one) Ui.Calendar Ui.Editor (Ui.EditorToolbar Ui.EditorButton Ui.EditorContent and a part per toolbar item — Flux's rich text editor on Tiptap; its engine is a separate script the build writes to wwwroot/js, fetched only by a page that mounts an editor) |
| Layout | Ui.Separator |
| The kit's own (not Flux's) | Ui.AppFrame (an app's whole frame: sidebar menu, breadcrumbs from it, user and sign-out) Ui.Confirm Ui.ConfirmLeave Ui.Filters Ui.Filter Ui.FormButtons (a form's Delete, Cancel and Save) Ui.FormTabs Ui.FormTab (a long form's tabs, a red count of invalid fields on each) Ui.RowActions (a row's ⋯ menu), Ui.ColumnWidth (Ui.TableColumn.Width(…), Ui.TableCell.Cut(…)), Ui.Empty (Flux's demo's empty state), Ui.PageHeader (a page's title row), Ui.EditorDialog (a list's editor over it, opened by the query string), Ui.DayAndTime (a typed day and time in one row, one DateTime?) and .Choices(…) on Ui.Select / Ui.Pillbox (rows of another table, Ui.Choice<T>) |
| Layout (Flux's) | Ui.Header Ui.Main Ui.Sidebar Ui.SidebarHeader Ui.SidebarBrand Ui.SidebarCollapse Ui.SidebarSearch Ui.SidebarNav Ui.SidebarItem Ui.SidebarGroup Ui.SidebarSpacer Ui.SidebarProfile Ui.SidebarToggle |
| Support | Ui.Icon / Ui.IconName / Ui.IconVariant (all of Heroicons: outline, solid, mini, micro), Ui.AppearanceScript (dark mode), UiPaginator, Ui.Breakpoint, UiStylesheet |
Requires .NET 11. Runs on both the ASP.NET host and browser-WebAssembly.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. net11.0-browser1.0 is compatible. |
-
net11.0
- Rask (>= 0.24.0)
- Rask.Query (>= 0.24.0)
-
net11.0-browser1.0
- Rask (>= 0.24.0)
- Rask.Query (>= 0.24.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Rask.Ui:
| Package | Downloads |
|---|---|
|
Rask.Wasm
The Rask browser host: runs a Rask app's C# components client-side on .NET WebAssembly, with the client halves of the batteries — the mediator and query cache, remote dispatch, accounts, validation and the component kit — on by default. Ships the JS boot scripts, the page shell, and the MSBuild integration that stages them into the published bundle — and, opted in, prerenders every route to static HTML with a sitemap.xml at publish, so a static host serves real pages to visitors and crawlers. Depends on Rask, the shared core. |
|
|
Rask.Server
The ASP.NET host for Rask, a full-stack .NET web framework, with every battery: database (SQLite or SQL Server, and PostgreSQL with the Rask.Postgres package, picked by Rask:Database:Provider), mediator and query cache, accounts, background jobs, transactional email, cache, file storage, outbox, operator dashboard, durable logs, Web Push, SQLite snapshots and continuous backup. Renders Rask components with live updates over a WebSocket. RaskApp.Create(args).Run<App>() is the whole Program.cs, and RaskApp.Create(args).Serve() the whole server of a WebAssembly client; app.Configure(c => c.Jobs.Off()) is how an app does without one. Depends on Rask, the shared core. |
|
|
Rask.Dashboard
A built-in operator dashboard for the Rask One Person Framework batteries. Mounts at /_rask and shows the outbox, background jobs, queued mail, cache and stored files from the application's own database — queue depth, dead letters, the errors behind them, stored email previews, the recurring-job schedule, SQLite pragmas and backup status. A live log tail is built in, and becomes a searchable history when Rask.Logging is installed. Panels appear only for the batteries the app actually registered. Protected by an authorization policy that fails closed outside Development. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.24.1-alpha.0.987 | 38 | 11/28/2026 |
| 0.24.1-alpha.0.979 | 39 | 11/28/2026 |
| 0.24.1-alpha.0.972 | 50 | 11/28/2026 |
| 0.24.1-alpha.0.970 | 53 | 11/28/2026 |
| 0.24.1-alpha.0.907 | 52 | 11/27/2026 |
| 0.24.1-alpha.0.902 | 55 | 11/27/2026 |
| 0.24.1-alpha.0.873 | 50 | 11/27/2026 |
| 0.24.1-alpha.0.822 | 57 | 11/27/2026 |
| 0.24.1-alpha.0.782 | 51 | 11/27/2026 |
| 0.24.1-alpha.0.775 | 61 | 11/27/2026 |
| 0.24.1-alpha.0.774 | 57 | 11/27/2026 |
| 0.24.1-alpha.0.770 | 47 | 11/27/2026 |
| 0.24.1-alpha.0.769 | 62 | 11/26/2026 |
| 0.24.1-alpha.0.767 | 54 | 11/26/2026 |
| 0.24.1-alpha.0.766 | 57 | 11/26/2026 |
| 0.24.1-alpha.0.760 | 69 | 11/26/2026 |
| 0.24.1-alpha.0.759 | 59 | 11/26/2026 |
| 0.24.1-alpha.0.757 | 60 | 11/26/2026 |
| 0.24.1-alpha.0.754 | 67 | 11/26/2026 |
| 0.24.0 | 160 | 11/16/2026 |