Add useful components for ui
This commit is contained in:
7
src/components/ui/Background.astro
Normal file
7
src/components/ui/Background.astro
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
const { isDark = false } = Astro.props;
|
||||
---
|
||||
|
||||
<div class:list={["absolute inset-0", { "bg-dark dark:bg-transparent": isDark }]}>
|
||||
<slot />
|
||||
</div>
|
Reference in New Issue
Block a user