import type { JSX } from "solid-js"; import { createContext, Component } from "solid-js"; export interface IconProps extends JSX.HTMLAttributes { color?: string; size?: string | number; weight?: "thin" | "light" | "regular" | "bold" | "fill" | "duotone"; mirrored?: boolean; } export type Icon = Component; export type IconContextProps = Required< Pick > & JSX.HTMLAttributes; export const IconContext = createContext({ color: "currentColor", size: "1em", weight: "regular", mirrored: false, });