mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-17 14:28:25 +00:00
feat(svelte): export context subpath (#4927)
Co-authored-by: Vugar Bakhishov <vugarbbakhishov-hub@users.noreply.github.com>
This commit is contained in:
co-authored by
Vugar Bakhishov
parent
41991a82aa
commit
05eacffce6
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user