types.ts 391 B

123456789101112
  1. import { JSX } from "solid-js/jsx-runtime";
  2. export type IconNode = [elementName: keyof JSX.IntrinsicElements, attrs: Record<string, string>][]
  3. export type SVGAttributes = Partial<JSX.SvgSVGAttributes<SVGSVGElement>>
  4. export interface IconProps extends SVGAttributes {
  5. key?: string | number;
  6. color?: string;
  7. size?: string | number;
  8. strokeWidth?: string | number;
  9. class?: string;
  10. }