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
+3 -1
View File
@@ -7,5 +7,7 @@ component SectionActions {
disabled = false
class = ""
}
view { <span class="wire-catalog-action {class}"><a data-show="href" href="{href}" class="wire-btn wire-btn--{variant}">{label}<slot /></a><button data-show="!href" type="{type}" disabled="{disabled}" class="wire-btn wire-btn--{variant}">{label}<slot /></button></span> }
view {
<span class="wire-catalog-action {class}">{#if href}<a href="{href}" class="wire-btn wire-btn--{variant}">{label}<slot /></a>{:else}<button type="{type}" disabled="{disabled}" class="wire-btn wire-btn--{variant}">{label}<slot /></button>{/if}</span>
}
}