From 05eacffce6eab8657962279f4d1c82b4283b0412 Mon Sep 17 00:00:00 2001 From: Vugar Bakhishov Date: Fri, 2 Oct 2026 15:11:05 +0400 Subject: [PATCH] feat(svelte): export context subpath (#4927) Co-authored-by: Vugar Bakhishov --- docs/guide/svelte/advanced/global-styling.md | 2 +- packages/svelte/package.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/guide/svelte/advanced/global-styling.md b/docs/guide/svelte/advanced/global-styling.md index d96cc302f..64112a8ef 100644 --- a/docs/guide/svelte/advanced/global-styling.md +++ b/docs/guide/svelte/advanced/global-styling.md @@ -25,7 +25,7 @@ This is useful if you want all icons to share the same size, color, or stroke wi You can call `setLucideProps` in your main entry file or in a top-level component to set the default properties for all icons. ```js -import { setLucideProps } from '@lucide/svelte'; +import { setLucideProps } from '@lucide/svelte/context'; setLucideProps({ size: 32, diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 1b81dd896..610abdfbf 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -30,6 +30,11 @@ "svelte": "./dist/lucide-svelte.js", "default": "./dist/lucide-svelte.js" }, + "./context": { + "types": "./dist/context.d.ts", + "svelte": "./dist/context.js", + "default": "./dist/context.js" + }, "./icons": { "types": "./dist/lucide-svelte.d.ts", "svelte": "./dist/lucide-svelte.js"