mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-07-04 23:29:12 +00:00
feat: additional component and styling choices
This commit is contained in:
parent
88884a69ac
commit
b03dcbaf2d
52 changed files with 1077 additions and 78 deletions
21
apps/web/src/lib/components/ui/sheet/sheet-overlay.svelte
Normal file
21
apps/web/src/lib/components/ui/sheet/sheet-overlay.svelte
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script lang="ts">
|
||||
import { Dialog as SheetPrimitive } from "bits-ui";
|
||||
import { cn } from "$lib/utils";
|
||||
import { fade } from "svelte/transition";
|
||||
|
||||
type $$Props = SheetPrimitive.OverlayProps;
|
||||
|
||||
let className: $$Props["class"] = undefined;
|
||||
export { className as class };
|
||||
export let transition: $$Props["transition"] = fade;
|
||||
export let transitionConfig: $$Props["transitionConfig"] = {
|
||||
duration: 150
|
||||
};
|
||||
</script>
|
||||
|
||||
<SheetPrimitive.Overlay
|
||||
{transition}
|
||||
{transitionConfig}
|
||||
class={cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm", className)}
|
||||
{...$$restProps}
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue