INIT
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
import type { BitsConfigProps } from "../types.js";
|
||||
import { useBitsConfig } from "../bits-config.js";
|
||||
import { boxWith } from "svelte-toolbelt";
|
||||
|
||||
let { children, defaultPortalTo, defaultLocale }: BitsConfigProps = $props();
|
||||
|
||||
useBitsConfig({
|
||||
defaultPortalTo: boxWith(() => defaultPortalTo),
|
||||
defaultLocale: boxWith(() => defaultLocale),
|
||||
});
|
||||
</script>
|
||||
|
||||
{@render children?.()}
|
||||
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
import type { BitsConfigProps } from "../types.js";
|
||||
declare const BitsConfig: import("svelte").Component<BitsConfigProps, {}, "">;
|
||||
type BitsConfig = ReturnType<typeof BitsConfig>;
|
||||
export default BitsConfig;
|
||||
Reference in New Issue
Block a user