phosphor-svelte
Version:
A clean and friendly icon family for Svelte
43 lines (38 loc) • 767 B
TypeScript
import type { Snippet } from "svelte";
import type { SVGAttributes } from "svelte/elements";
export type IconWeight =
| "bold"
| "duotone"
| "fill"
| "light"
| "thin"
| "regular";
export interface IconBaseProps {
/**
* @type {string}
* @default "currentColor"
*/
color?: string;
/**
* @type {number|string}
* @default "1em"
*/
size?: number | string;
/**
* @type {IconWeight}
* @default "regular"
*/
weight?: IconWeight;
/**
* @type {boolean}
* @default false
*/
mirrored?: boolean;
}
export interface IconComponentProps
extends Omit<SVGAttributes<SVGSVGElement>, keyof IconBaseProps>,
IconBaseProps {}
export interface IconContextProps {
values: IconComponentProps;
children?: Snippet;
}