phosphor-solid
Version:
A clean and friendly icon family for Solid-js
12 lines (11 loc) • 564 B
TypeScript
import type { JSX } from "solid-js";
import { Component } from "solid-js";
export interface IconProps extends JSX.HTMLAttributes<SVGSVGElement> {
color?: string;
size?: string | number;
weight?: "thin" | "light" | "regular" | "bold" | "fill" | "duotone";
mirrored?: boolean;
}
export declare type Icon = Component<IconProps>;
export declare type IconContextProps = Required<Pick<IconProps, "color" | "size" | "weight" | "mirrored">> & JSX.HTMLAttributes<SVGSVGElement>;
export declare const IconContext: import("solid-js").Context<any>;