RayCraftDocs
v1.0.3 raycraft.dev
On this page

List

Free

Vertical list of items with icon, two text lines and a trailing action. Items become links or buttons when Href or OnClick is set.

Example

List control

Parameters

List

ParameterTypeDescription
BorderedboolDraws a thin border.
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
DenseboolUses tighter cell padding.
StylestringInline style added to the root element.

ListItem

ParameterTypeDescription
ActionRenderFragmentContent at the end of the row, such as a button.
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
HrefstringLink address. On a Button it makes the button render as a link with the same look.
IconIconName?Icon to show (IconName).
SecondaryTextstringSmaller second line of text.
SelectedboolHighlights the item as chosen.
StylestringInline style added to the root element.
TextstringText content (Tooltip: the tooltip text, Avatar: a name that becomes initials, ListItem: the main line).

Events

ListItem

EventTypeDescription
OnClickEventCallback<MouseEventArgs>Raised when the button is clicked.

Package

List is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.