feat(ui): add professional visual fallbacks

This commit is contained in:
2026-07-19 23:09:56 +05:30
parent 33730c68ab
commit f72aec7c8c
93 changed files with 315 additions and 145 deletions
+6 -1
View File
@@ -3,7 +3,11 @@ component ApiEndpointCard {
class = ""
method = "GET"
path = "/api/example"
eyebrow = ""
title = ""
description = ""
href = ""
actionLabel = "View endpoint"
}
view {
@@ -17,7 +21,7 @@ component ApiEndpointCard {
{method}
</span>
<code class="text-sm font-semibold">
{path}
{title || path}
</code>
</div>
<p
@@ -29,6 +33,7 @@ component ApiEndpointCard {
<div class="mt-4">
<slot />
</div>
{#if href}<a href="{href}" class="mt-5 inline-flex items-center gap-2 text-sm font-bold text-violet-600 dark:text-violet-300">{actionLabel}<span class="icon-[lucide--arrow-right] size-4" aria-hidden="true"></span></a>{/if}
</article>
}
}