Add useful components for ui

This commit is contained in:
prototypa
2023-07-27 14:51:09 -04:00
parent d20b298028
commit b51e3bdebc
7 changed files with 393 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
---
const { isDark = false } = Astro.props;
---
<div class:list={["absolute inset-0", { "bg-dark dark:bg-transparent": isDark }]}>
<slot />
</div>