@loke/icons
Version:
A Loke icon library package for React applications.
20 lines (19 loc) • 841 B
TypeScript
import type { ForwardRefExoticComponent, RefAttributes, SVGProps } from "react";
/**
* A reduced version of `SVGElementType` from @types/react. This type was added
* with the release of React 19, and is included here in order to support usage
* with older versions.
*/
type SVGElementType = "circle" | "ellipse" | "g" | "line" | "path" | "polygon" | "polyline" | "rect";
export type IconNode = [
elementName: SVGElementType,
attrs: Record<string, string>
][];
export type SVGAttributes = Partial<SVGProps<SVGSVGElement>>;
type ElementAttributes = RefAttributes<SVGSVGElement> & SVGAttributes;
export interface LokeProps extends ElementAttributes {
absoluteStrokeWidth?: boolean;
size?: string | number;
}
export type LokeIcon = ForwardRefExoticComponent<Omit<LokeProps, "ref"> & RefAttributes<SVGSVGElement>>;
export {};