react-lightning-design-system
Version:
Salesforce Lightning Design System components built with React
58 lines (57 loc) • 1.54 kB
TypeScript
import React, { SVGAttributes } from 'react';
/**
*
*/
declare const ICONS: {
STANDARD_ICONS: string[];
CUSTOM_ICONS: string[];
ACTION_ICONS: string[];
DOCTYPE_ICONS: string[];
UTILITY_ICONS: string[];
};
/**
*
*/
export type IconCategory = 'action' | 'custom' | 'doctype' | 'standard' | 'utility';
export type IconSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';
export type IconContainer = 'circle';
export type IconTextColor = 'default' | 'currentColor' | 'success' | 'warning' | 'error' | 'light' | null;
/**
*
*/
export type IconProps = {
containerClassName?: string;
category?: IconCategory;
icon: string;
size?: IconSize;
align?: 'left' | 'right';
container?: IconContainer;
textColor?: IconTextColor;
fillColor?: string;
title?: string;
flip?: boolean;
} & SVGAttributes<SVGElement>;
/**
*
*/
export declare const SvgIcon: React.ForwardRefExoticComponent<{
containerClassName?: string | undefined;
category?: IconCategory | undefined;
icon: string;
size?: IconSize | undefined;
align?: "left" | "right" | undefined;
container?: "circle" | undefined;
textColor?: IconTextColor | undefined;
fillColor?: string | undefined;
title?: string | undefined;
flip?: boolean | undefined;
} & React.SVGAttributes<SVGElement> & {
iconColor?: string | null | undefined;
} & React.RefAttributes<SVGSVGElement | null>>;
/**
*
*/
export declare const Icon: React.FC<IconProps> & {
ICONS: typeof ICONS;
};
export {};