From c3b2ea3a57fbf0d0bd188e4da277d381d1c40e95 Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Wed, 2 Aug 2023 16:14:19 -0400 Subject: [PATCH] refactor label --- .../src/lib/components/ui/label/Label.svelte | 20 +++++++++++-------- apps/www/src/lib/components/ui/label/index.ts | 9 +++++++++ 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/apps/www/src/lib/components/ui/label/Label.svelte b/apps/www/src/lib/components/ui/label/Label.svelte index f1f17a4c1..636940778 100644 --- a/apps/www/src/lib/components/ui/label/Label.svelte +++ b/apps/www/src/lib/components/ui/label/Label.svelte @@ -1,16 +1,20 @@ - + + diff --git a/apps/www/src/lib/components/ui/label/index.ts b/apps/www/src/lib/components/ui/label/index.ts index 5a8bf391f..0b65d042b 100644 --- a/apps/www/src/lib/components/ui/label/index.ts +++ b/apps/www/src/lib/components/ui/label/index.ts @@ -1 +1,10 @@ +import { createLabel, melt } from "@melt-ui/svelte"; + export { default as Label } from "./Label.svelte"; +export { melt }; +export function getLabel() { + const { + elements: { root: label } + } = createLabel(); + return label; +}