Skip to content
Page PageLogos

PageLogos

A strip of logos, optionally scrolling as a marquee.

On this page

Examples

Logo list

Trusted by teams building on .NET

Razor
<div class="w-full rounded-lg border border-(--klyroo-border) bg-(--klyroo-bg) p-6">
    <KlyPageLogos Title="Trusted by teams building on .NET" HeadingLevel="3" Items="_logos" />
</div>

@code {
    private readonly PageLogoItem[] _logos =
    [
        new("Voltline") { Icon = "zap" },
        new("Meridian") { Icon = "globe" },
        new("Parsec") { Icon = "code" },
        new("Shellworks") { Icon = "terminal" },
        new("Northstar") { Icon = "star" },
    ];
}

Marquee

CSS only; the scrolling copies are hidden from assistive technology and the animation stops under prefers-reduced-motion.

Razor
<div class="w-full rounded-lg border border-(--klyroo-border) bg-(--klyroo-bg) p-6">
    <KlyPageLogos Marquee Duration="20" Items="_logos" />
</div>

@code {
    private readonly PageLogoItem[] _logos =
    [
        new("Voltline") { Icon = "zap" },
        new("Meridian") { Icon = "globe" },
        new("Parsec") { Icon = "code" },
        new("Shellworks") { Icon = "terminal" },
        new("Northstar") { Icon = "star" },
        new("Hearth") { Icon = "heart" },
    ];
}

API

KlyPageLogos

Logos of customers or partners, as a wrapped list or a scrolling strip.

Parameters

Name Type Default Description
Class string Classes added to the root element, merged last so they win over the theme.
Duration Double 30 Seconds for one loop of the marquee.
HeadingLevel int? 2 Level of the title heading, 1 to 6; null renders a paragraph.
ImageOptions KlyImageOptions Image settings forwarded to KlyImage for every image logo.
Items IReadOnlyList<PageLogoItem> The logos, each an icon or an image with an accessible name.
Marquee bool false Scrolls the logos in a loop, see KlyMarquee . The scrolling copies are hidden from assistive technology.
Title string Heading above the logos.
Ui PageLogosUi Per-instance class overrides of the slots of the page logos, see PageLogosUi . They are merged after the theme and the Class parameter wins on the root slot.

Slots

Name Type Description
ChildContent RenderFragment Custom logos, shown after Items . Give each one an accessible name.

Ui slots

Ui takes a PageLogosUi with one class string per slot, merged after the theme.

Slot Styles
Root Classes merged into the root slot of KlyPageLogos , after the theme and the app configuration.
Title Classes merged into the title slot of KlyPageLogos , after the theme and the app configuration.
Items Classes merged into the items slot of KlyPageLogos , after the theme and the app configuration.
Item Classes merged into the item slot of KlyPageLogos , after the theme and the app configuration.
Icon Classes merged into the icon slot of KlyPageLogos , after the theme and the app configuration.
Image Classes merged into the image slot of KlyPageLogos , after the theme and the app configuration.
Marquee Classes merged into the marquee slot of KlyPageLogos , after the theme and the app configuration.

PageLogoItem

A logo of a KlyPageLogos : a built-in icon, or an image. Alt is its accessible name.

Parameters

Name Type Description
Alt string Accessible name of the logo.
Icon string Name of a built-in icon (see KlyIcon ).
Src string URL of an image, used when no Icon is given.