UNPKG

@lucide/svelte

Version:

A Lucide icon library package for Svelte applications.

32 lines (31 loc) 976 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 type { SVGAttributes } from 'svelte/elements'; import type { Snippet, Component } from 'svelte'; export type Attrs = SVGAttributes<SVGSVGElement>; type IconNodeElements = 'circle' | 'ellipse' | 'g' | 'line' | 'path' | 'polygon' | 'polyline' | 'rect'; export type IconNode = [elementName: IconNodeElements, attrs: Attrs][]; export interface LucideProps extends Attrs { name?: string; color?: string; size?: number | string; strokeWidth?: number | string; absoluteStrokeWidth?: boolean; iconNode?: IconNode; children?: Snippet; title?: string; } export type IconProps = LucideProps; export type LucideIcon = Component<LucideProps>; export type IconEvents = { [evt: string]: CustomEvent<any>; }; export type IconSlots = { default: {}; }; export {};