mirror of
https://github.com/hanzoai/o11y-components.git
synced 2026-10-30 14:54:15 +00:00
* feat: add story for icons libaray * chore: remove unnecessary icon category
26 lines
622 B
TypeScript
26 lines
622 B
TypeScript
interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
size?: number | string;
|
|
strokeWidth?: number;
|
|
className?: string;
|
|
}
|
|
|
|
export interface IconManifest {
|
|
name: string;
|
|
component: React.ComponentType<IconProps>;
|
|
category: string;
|
|
tags: string[];
|
|
}
|
|
|
|
// Import all icons
|
|
import * as Icons from '@signozhq/icons';
|
|
|
|
// Create manifest
|
|
export const iconsManifest: IconManifest[] = Object.entries(Icons).map(
|
|
([name, component]) => ({
|
|
name,
|
|
component: component as React.ComponentType<IconProps>,
|
|
category: name.includes('Solid') ? 'Solid' : 'Outline',
|
|
tags: name.toLowerCase().split(/(?=[A-Z])/),
|
|
}),
|
|
);
|