Rask
Rask
v0.24.1-alpha.0.329

Components

Item

A row with a heading, a line of supporting text and a control at the end. Group items together for settings pages, account details, and lists of people or connections.

Drawn and behaving as Flux UI's item does, measured against its live docs.

Item

A lone item over a group of three: a switch, a menu and a button at the end of their rows.

ItemExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemExample : Component
{
    private bool _twoFactor = true;
    private string _language = "English";

    protected override Component? Render() =>
        Div.Class("max-w-xl space-y-6")[
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Circle().Src("/img/avatars/amber.svg")],
                Ui.ItemHeading["Mara Lind"],
                Ui.ItemSubheading["mara@example.com"],
                Ui.ItemActions[Ui.Button.Sm.IconTrailing(Ui.IconName.ArrowUpRight)["Edit profile"]]
            ],
            Ui.ItemGroup[
                Ui.Item[
                    Ui.ItemHeading["Two-factor authentication"],
                    Ui.ItemSubheading["Ask for a code when you sign in on a new device."],
                    Ui.ItemActions[
                        Ui.Switch.Value(_twoFactor).OnChange(on => { _twoFactor = on; })
                            .Attributes(("aria-label", "Two-factor authentication"))
                    ]
                ],
                Ui.Item[
                    Ui.ItemHeading["Language"],
                    Ui.ItemActions[
                        Ui.Dropdown.End[
                            Ui.Button.Sm.Ghost.IconTrailing(Ui.IconName.ChevronDown).Inset(Ui.Inset.Right)[_language],
                            Ui.Menu[
                                Ui.MenuRadioGroup.Value(_language).OnChange(language => { _language = language; })[
                                    Ui.MenuRadio.Value("English")["English"],
                                    Ui.MenuRadio.Value("Español")["Español"],
                                    Ui.MenuRadio.Value("Français")["Français"]
                                ]
                            ]
                        ]
                    ]
                ],
                Ui.Item[
                    Ui.ItemHeading["Sign out everywhere else"],
                    Ui.ItemSubheading["You're signed in on 3 other devices."],
                    Ui.ItemActions[Ui.Button.Sm["Sign out"]]
                ]
            ]
        ];
}
Live result
Mara Lind

mara@example.com

Two-factor authentication

Ask for a code when you sign in on a new device.

Language
Sign out everywhere else

You're signed in on 3 other devices.

Single item

A single item needs no group: on its own it draws the same surface a group would.

ItemSingleExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemSingleExample : Component
{
    protected override Component? Render() =>
        Ui.Item.Class("max-w-xl")[
            Ui.ItemHeading["Sign out"],
            Ui.ItemSubheading["Your boards stay on this device."],
            Ui.ItemActions[Ui.Button.Sm["Sign out"]]
        ];
}
Live result
Sign out

Your boards stay on this device.

Without a subheading

One line, still as tall as a small button, so the rows stay even.

ItemNoSubheadingExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemNoSubheadingExample : Component
{
    private bool _renew = true;

    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[Ui.ItemHeading["Subscribed since"], Ui.ItemActions[Ui.Text["October 4, 2026"]]],
            Ui.Item[Ui.ItemHeading["Seats"], Ui.ItemActions[Ui.Text["3 of 5 used"]]],
            Ui.Item[
                Ui.ItemHeading["Renew automatically"],
                Ui.ItemActions[Ui.Switch.Value(_renew).OnChange(on => { _renew = on; }).Attributes(("aria-label", "Renew automatically"))]
            ]
        ];
}
Live result
Subscribed since

October 4, 2026

Seats

3 of 5 used

Renew automatically

Actions

Buttons, a switch or a value at the end of the row, centred on the text beside them.

ItemActionsExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemActionsExample : Component
{
    private bool _reports = true;

    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[
                Ui.ItemHeading["Rask CLI"],
                Ui.ItemSubheading["Not found on this computer."],
                Ui.ItemActions[Ui.Button.Sm.Subtle["Browse…"], Ui.Button.Sm["Install"]]
            ],
            Ui.Item[
                Ui.ItemHeading["Send error reports"],
                Ui.ItemSubheading["When something goes wrong, we get a report so it can be fixed."],
                Ui.ItemActions[Ui.Switch.Value(_reports).OnChange(on => { _reports = on; }).Attributes(("aria-label", "Send error reports"))]
            ],
            Ui.Item[
                Ui.ItemHeading["Next payment"],
                Ui.ItemSubheading["December 4, 2026"],
                Ui.ItemActions[Ui.Heading["$60.00"]]
            ]
        ];
}
Live result
Rask CLI

Not found on this computer.

Send error reports

When something goes wrong, we get a report so it can be fixed.

Next payment

December 4, 2026

$60.00

Media

An avatar, an icon or anything else that leads the row.

ItemMediaExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemMediaExample : Component
{
    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Circle().Src("/img/avatars/amber.svg")],
                Ui.ItemHeading["Mara Lind"],
                Ui.ItemSubheading["mara@example.com"]
            ],
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Icon(Ui.IconName.CommandLine)],
                Ui.ItemHeading["Rask CLI"],
                Ui.ItemSubheading["Version 1.4.2"]
            ],
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Initials("N")],
                Ui.ItemHeading["Northwind"],
                Ui.ItemSubheading["8 boards"]
            ]
        ];
}
Live result
Mara Lind

mara@example.com

Rask CLI

Version 1.4.2

N
Northwind

8 boards

Narrow widths

Under 24rem of its own width a button with words moves under the text; a switch stays at the end. The item goes by its own width, so it does the same in a modal or a sidebar.

ItemNarrowExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemNarrowExample : Component
{
    private bool _reports = true;

    protected override Component? Render() =>
        Div.Class("max-w-xs space-y-6")[
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Circle().Src("/img/avatars/amber.svg")],
                Ui.ItemHeading["Mara Lind"],
                Ui.ItemSubheading["mara@example.com"],
                Ui.ItemActions[Ui.Button.Sm.IconTrailing(Ui.IconName.ArrowUpRight)["Edit profile"]]
            ],
            Ui.ItemGroup[
                Ui.Item[
                    Ui.ItemHeading["Rask CLI"],
                    Ui.ItemSubheading["Not found on this computer."],
                    Ui.ItemActions[Ui.Button.Sm.Subtle["Browse…"], Ui.Button.Sm["Install"]]
                ],
                Ui.Item[
                    Ui.ItemHeading["Send error reports"],
                    Ui.ItemSubheading["When something goes wrong, we get a report so it can be fixed."],
                    Ui.ItemActions[Ui.Switch.Value(_reports).OnChange(on => { _reports = on; }).Attributes(("aria-label", "Send error reports"))]
                ]
            ]
        ];
}
Live result
Mara Lind

mara@example.com

Rask CLI

Not found on this computer.

Send error reports

When something goes wrong, we get a report so it can be fixed.

Team members

People on a team, each with their role. Roles you can change open a menu.

ItemTeamExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemTeamExample : Component
{
    private string _ezra = "Admin";
    private string _noor = "Member";

    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Circle().Src("/img/avatars/amber.svg")],
                Ui.ItemHeading["Mara Lind ", Ui.Text.Inline().Subtle["(you)"]],
                Ui.ItemSubheading["mara@example.com"],
                Ui.ItemActions[Ui.Text["Owner"]]
            ],
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Circle().Src("/img/avatars/sky.svg")],
                Ui.ItemHeading["Ezra Cole"],
                Ui.ItemSubheading["ezra@example.com"],
                Ui.ItemActions[Role(_ezra, role => { _ezra = role; })]
            ],
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Circle().Src("/img/avatars/emerald.svg")],
                Ui.ItemHeading["Noor Haddad"],
                Ui.ItemSubheading["noor@example.com"],
                Ui.ItemActions[Role(_noor, role => { _noor = role; })]
            ],
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Circle().Icon(Ui.IconName.Envelope)],
                Ui.ItemHeading["mia@example.com"],
                Ui.ItemSubheading["Invited 2 days ago"],
                Ui.ItemActions[
                    Ui.Dropdown.End[
                        Ui.Button.Sm.Ghost.Icon(Ui.IconName.EllipsisHorizontal).Attributes(("aria-label", "Invite options")),
                        Ui.Menu[Ui.MenuItem["Resend invite"], Ui.MenuItem.Danger["Revoke invite"]]
                    ]
                ]
            ]
        ];

    private static Component Role(string role, Action<string> choose) =>
        Ui.Dropdown.End[
            Ui.Button.Sm.Ghost.IconTrailing(Ui.IconName.ChevronDown).Inset(Ui.Inset.Right)[role],
            Ui.Menu[
                Ui.MenuRadioGroup.Value(role).OnChange(choose)[
                    Ui.MenuRadio.Value("Admin")["Admin"],
                    Ui.MenuRadio.Value("Member")["Member"]
                ],
                Ui.MenuSeparator,
                Ui.MenuItem.Danger["Remove from team…"]
            ]
        ];
}
Live result
Mara Lind (you)

mara@example.com

Owner

Ezra Cole

ezra@example.com

Noor Haddad

noor@example.com

mia@example.com

Invited 2 days ago

Connected apps

When each was last used, and a menu to disconnect it.

ItemAppsExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemAppsExample : Component
{
    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            App("Release bot", "Used 4 minutes ago"),
            App("Deploy hook", "Used yesterday"),
            App("Docs search", "Never used")
        ];

    private static Component App(string name, string used) =>
        Ui.Item[
            Ui.ItemHeading[name],
            Ui.ItemActions[
                Ui.Text[used],
                Ui.Dropdown.End[
                    Ui.Button.Sm.Ghost.Icon(Ui.IconName.EllipsisHorizontal).Attributes(("aria-label", name + " options")),
                    Ui.Menu[Ui.MenuItem.Danger["Disconnect…"]]
                ]
            ]
        ];
}
Live result
Release bot

Used 4 minutes ago

Deploy hook

Used yesterday

Docs search

Never used

Billing

ItemBillingExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemBillingExample : Component
{
    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[
                Ui.ItemHeading["Pro plan"],
                Ui.ItemSubheading["$20 a month for each person"],
                Ui.ItemActions[Ui.Badge.Sm.Green["Active"]]
            ],
            Ui.Item[
                Ui.ItemHeading["Next payment"],
                Ui.ItemSubheading["December 4, 2026"],
                Ui.ItemActions[Ui.Heading["$60.00"]]
            ],
            Ui.Item[
                Ui.ItemHeading["Payment details and invoices"],
                Ui.ItemSubheading["Managed by Stripe."],
                Ui.ItemActions[Ui.Button.Sm.IconTrailing(Ui.IconName.ArrowUpRight)["Manage billing"]]
            ]
        ];
}
Live result
Pro plan

$20 a month for each person

Active
Next payment

December 4, 2026

$60.00
Payment details and invoices

Managed by Stripe.

Teams

ItemTeamsExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemTeamsExample : Component
{
    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Initials("P")],
                Ui.ItemHeading["Paraframe"],
                Ui.ItemSubheading["24 boards"],
                Ui.ItemActions[Ui.Badge.Sm["Owner"]]
            ],
            Ui.Item[
                Ui.ItemMedia[Ui.Avatar.Sm.Initials("N")],
                Ui.ItemHeading["Northwind"],
                Ui.ItemSubheading["8 boards"],
                Ui.ItemActions[Ui.Badge.Sm["Member"]]
            ]
        ];
}
Live result
P
Paraframe

24 boards

Owner
N
Northwind

8 boards

Member

Notifications

ItemNotificationsExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemNotificationsExample : Component
{
    private bool _comments = true;
    private bool _mentions = true;
    private bool _digest;

    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[
                Ui.ItemHeading["Comments"],
                Ui.ItemSubheading["When someone comments on a board you own."],
                Ui.ItemActions[Ui.Switch.Value(_comments).OnChange(on => { _comments = on; }).Attributes(("aria-label", "Comments"))]
            ],
            Ui.Item[
                Ui.ItemHeading["Mentions"],
                Ui.ItemSubheading["When someone mentions you anywhere."],
                Ui.ItemActions[Ui.Switch.Value(_mentions).OnChange(on => { _mentions = on; }).Attributes(("aria-label", "Mentions"))]
            ],
            Ui.Item[
                Ui.ItemHeading["Weekly digest"],
                Ui.ItemSubheading["A summary of what changed, every Monday."],
                Ui.ItemActions[Ui.Switch.Value(_digest).OnChange(on => { _digest = on; }).Attributes(("aria-label", "Weekly digest"))]
            ]
        ];
}
Live result
Comments

When someone comments on a board you own.

Mentions

When someone mentions you anywhere.

Weekly digest

A summary of what changed, every Monday.

Danger zone

Actions that are hard to undo, kept together and apart from everything else.

ItemDangerExample.cs
namespace Rask.Site.Features.UiDocs.Examples;

public sealed partial class ItemDangerExample : Component
{
    protected override Component? Render() =>
        Ui.ItemGroup.Class("max-w-xl")[
            Ui.Item[
                Ui.ItemHeading["Transfer ownership"],
                Ui.ItemSubheading["Give this team to someone else. You'll stay on as an admin."],
                Ui.ItemActions[Ui.Button.Sm["Transfer…"]]
            ],
            Ui.Item[
                Ui.ItemHeading["Delete team"],
                Ui.ItemSubheading["Its boards are deleted for everyone. This can't be undone."],
                Ui.ItemActions[Ui.Button.Sm.Red["Delete…"]]
            ]
        ];
}
Live result
Transfer ownership

Give this team to someone else. You'll stay on as an admin.

Delete team

Its boards are deleted for everyone. This can't be undone.

Behaviour

Each part has its place

An item is a grid of three columns: Ui.ItemMedia at the start, Ui.ItemHeading with Ui.ItemSubheading under it in the middle, Ui.ItemActions at the end. The media and the actions are centred on the heading and subheading, whatever order you write the parts in. Ui.ItemHeading.Level(3) makes the heading an <h3>; without a level it is a <div>, outside the document outline.

One surface

Ui.ItemGroup draws the bordered, rounded surface and a rule between its items. An item on its own draws that surface itself, so a single row needs no group.

Narrow items

An item is a size container. Under 24rem of its own width, actions holding a Ui.Button with words move under the text, so the heading keeps its room. Switches, values, a dropdown's button and icon-only buttons stay at the end. It goes by the item's width, not the screen's: the same in a modal or a sidebar.

Reference

Ui.ItemGroup

flux:item.group

Items drawn as one bordered surface with a rule between each.

No steps of its own: what goes inside it is its content.

Ui.Item

flux:item

One row: media, a heading and subheading, actions. Alone, it draws the surface itself.

No steps of its own: what goes inside it is its content.

Ui.ItemMedia

flux:item.media

What leads the row: an avatar, an icon. Several sit side by side.

No steps of its own: what goes inside it is its content.

It is one HTML element, so Id, Class, Style, Data, Aria and the events are its steps too.

Ui.ItemHeading

flux:item.heading

The row's title.

Step
Takes
What it does
.Level(…)intThe heading level to render, such as 3 for an h3. A div when unset.

It is one HTML element, so Id, Class, Style, Data, Aria and the events are its steps too.

Ui.ItemSubheading

flux:item.subheading

Supporting text, tucked under the heading.

No steps of its own: what goes inside it is its content.

It is one HTML element, so Id, Class, Style, Data, Aria and the events are its steps too.

Ui.ItemActions

flux:item.actions

Buttons, a switch or a value at the end of the row.

No steps of its own: what goes inside it is its content.

It is one HTML element, so Id, Class, Style, Data, Aria and the events are its steps too.

Confirm