@grafana/ui
Version:
Grafana Components Library
18 lines (17 loc) • 700 B
TypeScript
import * as React from 'react';
import { IconName, IconType, 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: React.MemoExoticComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGElement>>>;