solid-heroicons icon indicating copy to clipboard operation
solid-heroicons copied to clipboard

fix: incorrect `Props.path.path` type

Open skyrpex opened this issue 1 year ago • 0 comments

The generated icon files in the solid.heroicons NPM package use the following type:

interface {
  path: () => JSX.Element;
  outline?: boolean;
  mini?: boolean;
}

For example, export const academicCap = { path: () => <><path stroke-linecap="round" stroke-linejoin="round" d="M4.26 10.147a60.436..."/></>, outline: true, mini: false };

But the current definition in the Icon Props is path: JSX.Element. Defining custom icons as path: JSX.Element doesn't work, it needs to be a function.

skyrpex avatar Oct 20 '23 11:10 skyrpex