New UI Components

This commit is contained in:
2026-07-18 16:00:13 +05:30
parent d22824fa62
commit 95ca1c0625
75 changed files with 201 additions and 200 deletions
+1 -12
View File
@@ -1,12 +1 @@
// Themed table wrapper — put a <table>…</table> (or thead/tbody) in the slot.
// Scrolls horizontally on small screens.
component Table {
props {
class = ""
}
view {
<div class="wire-table-wrap {class}">
<table class="wire-table"><slot></slot></table>
</div>
}
}
component Table { props { caption = "Data table" responsive = true } view { <div class="w-full overflow-x-auto rounded-2xl border border-slate-200 dark:border-slate-800"><table class="w-full min-w-[640px] border-collapse text-left text-sm"><caption class="sr-only">{caption}</caption><slot /></table></div> } }