@cocstorage/ui-icons
Version:
10 lines (9 loc) • 474 B
TypeScript
import { SVGProps } from 'react';
import { BrandColor, Color, GenericComponentProps } from '@cocstorage/ui';
import * as SvgIcons from '../../assets/icons';
export interface IconProps extends GenericComponentProps<SVGProps<SVGElement>> {
name: keyof typeof SvgIcons;
color?: BrandColor | Color;
}
declare function Icon({ name, viewBox, color, customStyle, ...props }: IconProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
export default Icon;