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.
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"]]
]
]
];
}mara@example.com
Ask for a code when you sign in on a new device.
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.
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"]]
];
}Your boards stay on this device.
Without a subheading
One line, still as tall as a small button, so the rows stay even.
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"))]
]
];
}Actions
Buttons, a switch or a value at the end of the row, centred on the text beside them.
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"]]
]
];
}Not found on this computer.
When something goes wrong, we get a report so it can be fixed.
December 4, 2026
Media
An avatar, an icon or anything else that leads the row.
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"]
]
];
}mara@example.com
Version 1.4.2
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.
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"))]
]
]
];
}mara@example.com
Not found on this computer.
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.
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…"]
]
];
}mara@example.com
ezra@example.com
noor@example.com
Invited 2 days ago
Connected apps
When each was last used, and a menu to disconnect it.
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…"]]
]
]
];
}Billing
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"]]
]
];
}$20 a month for each person
December 4, 2026
Managed by Stripe.
Teams
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"]]
]
];
}24 boards
8 boards
Notifications
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"))]
]
];
}When someone comments on a board you own.
When someone mentions you anywhere.
A summary of what changed, every Monday.
Danger zone
Actions that are hard to undo, kept together and apart from everything else.
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…"]]
]
];
}Give this team to someone else. You'll stay on as an admin.
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
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
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
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
The row's title.
Step | Takes | What it does |
|---|---|---|
.Level(…) | int | The 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
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
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.