@solar-icons/react
Version:
Solar Icons for React
22 lines (21 loc) • 774 B
TypeScript
import type { ComponentPropsWithoutRef, RefAttributes } from 'react';
export declare enum IconStyle {
BROKEN = "Broken",
LINE_DUOTONE = "LineDuotone",
LINEAR = "Linear",
OUTLINE = "Outline",
BOLD = "Bold",
BOLD_DUOTONE = "BoldDuotone"
}
export type IconWeight = 'Broken' | 'LineDuotone' | 'Linear' | 'Outline' | 'Bold' | 'BoldDuotone';
export interface IconBaseProps {
alt?: string;
color?: string;
size?: string | number;
weight?: IconWeight;
mirrored?: boolean;
}
export interface IconProps extends ComponentPropsWithoutRef<'svg'>, RefAttributes<SVGSVGElement>, Omit<IconBaseProps, 'color'> {
color?: string;
}
export type Icon = React.ForwardRefExoticComponent<Omit<IconProps, 'ref'> & React.RefAttributes<SVGSVGElement>>;