@grafana/ui
Version:
Grafana Components Library
17 lines (16 loc) • 713 B
TypeScript
import { type IconName, type IconType, type IconSize } from '../../types/icon';
export interface IconProps extends Omit<React.SVGProps<SVGElement>, 'onLoad' | 'onError' | 'ref'> {
name: IconName;
size?: IconSize;
type?: IconType;
/**
* Give your icon a semantic meaning. The icon will be hidden from screen readers, unless this prop or an aria-label is provided.
*/
title?: string;
}
/**
* Grafana's icon wrapper component.
*
* https://developers.grafana.com/ui/latest/index.html?path=/docs/iconography-icon--docs
*/
export declare const Icon: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGElement>>>;