ResourceCard

Description

A card to display a resource

ResourceCards are used to display a summary of a resource like an AI model, document, or service. They provide optional sections for title, subtitle, tags, description, date, icon, and a footer for commands.

The example below uses a SearchableList in grid mode to render a set of ResourceCards.

API reference

class

ResourceCard

public sealed class ResourceCard : ComponentBase<ResourceCard, HTMLElement>, IHasBackgroundColor, IRoundedStyle

A card variant tailored to displaying a single resource (file, item, link) with icon, title, subtitle and actions.

Namespace
Tesserae
Inheritance
ComponentBase<ResourceCard, HTMLElement> → ResourceCard
Implements
IHasBackgroundColor, IRoundedStyle

Constructors

NameDescription
ResourceCardInitializes a new instance of this class.
Constructor
ResourceCard
public ResourceCard()

Initializes a new instance of this class.

Properties

NameDescription
BackgroundGets or sets the CSS background of the component.
Property
ResourceCard.Background
public string Background { get ; set ; }

Gets or sets the CSS background of the component.

Methods

NameDescription
SetIconSets the icon of the component.
SetTitleSets the title of the component.
SetSubtitleSets the subtitle of the component.
SetTagsSets the tags of the component.
SetDescriptionSets the description of the component.
SetDateSets the date of the component.
SetFooterSets the footer of the component.
SetFooterCommandsSets the footer commands of the component.
BackgroundColorSets the background colour of the card.
BorderConfigures the component to border.
RenderRenders the component's root HTML element.
Method
ResourceCard.SetIcon
public ResourceCard SetIcon(IComponent icon)

Sets the icon of the component.

Method
ResourceCard.SetTitle
Overload
SetTitle(IComponent)Sets the title of the component.
SetTitle(string)Sets the title of the component.
SetTitle(IComponent)
public ResourceCard SetTitle(IComponent title)

Sets the title of the component.

Parameters

title IComponent
SetTitle(string)
public ResourceCard SetTitle(string title)

Sets the title of the component.

Parameters

title string
Method
ResourceCard.SetSubtitle
Overload
SetSubtitle(IComponent)Sets the subtitle of the component.
SetSubtitle(string)Sets the subtitle of the component.
SetSubtitle(IComponent)
public ResourceCard SetSubtitle(IComponent subtitle)

Sets the subtitle of the component.

Parameters

subtitle IComponent
SetSubtitle(string)
public ResourceCard SetSubtitle(string subtitle)

Sets the subtitle of the component.

Parameters

subtitle string
Method
ResourceCard.SetTags
public ResourceCard SetTags(params IComponent[] tags)

Sets the tags of the component.

Method
ResourceCard.SetDescription
Overload
SetDescription(IComponent)Sets the description of the component.
SetDescription(string)Sets the description of the component.
SetDescription(IComponent)
public ResourceCard SetDescription(IComponent description)

Sets the description of the component.

Parameters

description IComponent
SetDescription(string)
public ResourceCard SetDescription(string description)

Sets the description of the component.

Parameters

description string
Method
ResourceCard.SetDate
Overload
SetDate(IComponent)Sets the date of the component.
SetDate(string)Sets the date of the component.
SetDate(IComponent)
public ResourceCard SetDate(IComponent date)

Sets the date of the component.

Parameters

date IComponent
SetDate(string)
public ResourceCard SetDate(string date)

Sets the date of the component.

Parameters

date string
Method
ResourceCard.SetFooter
public ResourceCard SetFooter(IComponent footer)

Sets the footer of the component.

Method
ResourceCard.SetFooterCommands
public ResourceCard SetFooterCommands(params IComponent[] commands)

Sets the footer commands of the component.

Method
ResourceCard.BackgroundColor
public ResourceCard BackgroundColor(string color)

Sets the background colour of the card.

Method
ResourceCard.Border
public ResourceCard Border(string color, UnitSize size = null)

Configures the component to border.

Method
ResourceCard.Render
public override HTMLElement Render()

Renders the component's root HTML element.

Sample

See also

© 2026 Curiosity. All rights reserved.