Files
WRNexusJS/packages/ui/components/TrustBadgeList.wrn
T

16 lines
512 B
Plaintext

component TrustBadgeList {
props {
title = ""
description = ""
empty = false
emptyText = "No items available."
class = ""
}
view {
<section class="wire-catalog-collection {class}">
{#if title || description}<header>{#if title}<h2>{title}</h2>{/if}{#if description}<p>{description}</p>{/if}</header>{/if}
{#if empty}<p role="status" class="wire-muted">{emptyText}</p>{:else}<div role="list" class="wire-catalog-collection__items"><slot /></div>{/if}
</section>
}
}