UNPKG

@lucide/svelte

Version:

A Lucide icon library package for Svelte applications.

12 lines (11 loc) 432 B
/** * @file * @license @lucide/svelte v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ import { getContext, setContext } from 'svelte'; const LucideContext = Symbol('lucide-context'); export const setLucideProps = (globalProps) => setContext(LucideContext, globalProps); export const getLucideContext = () => getContext(LucideContext);