diff --git a/src/lib/components/ui/tooltip/index.ts b/src/lib/components/ui/tooltip/index.ts new file mode 100644 index 0000000..7e883a8 --- /dev/null +++ b/src/lib/components/ui/tooltip/index.ts @@ -0,0 +1,15 @@ +import { Tooltip as TooltipPrimitive } from 'bits-ui'; +import Content from './tooltip-content.svelte'; + +const Root = TooltipPrimitive.Root; +const Trigger = TooltipPrimitive.Trigger; + +export { + Root, + Trigger, + Content, + // + Root as Tooltip, + Content as TooltipContent, + Trigger as TooltipTrigger, +}; diff --git a/src/lib/components/ui/tooltip/tooltip-content.svelte b/src/lib/components/ui/tooltip/tooltip-content.svelte new file mode 100644 index 0000000..d4b55a7 --- /dev/null +++ b/src/lib/components/ui/tooltip/tooltip-content.svelte @@ -0,0 +1,25 @@ + + + + + diff --git a/src/lib/components/user.svelte b/src/lib/components/user.svelte index c97de9e..1640be2 100644 --- a/src/lib/components/user.svelte +++ b/src/lib/components/user.svelte @@ -1,4 +1,7 @@ {#if data.session} -
+
Profile image for {data.session?.user.name} @@ -15,5 +18,13 @@

{data.session?.user.name}

+ + + + + +

Account Settings

+
+
{/if}