@sinchsmb/ui-kit
Version:
UI kit for SinchSMB frontend
26 lines (25 loc) • 742 B
TypeScript
import { ReactElement, SVGProps } from 'react';
import { CommonProps, TestIdProps } from '../../types';
import { IconGlyph } from './constants';
export type IconProps = CommonProps & TestIdProps & {
ariaLabel?: SVGProps<SVGSVGElement>['aria-label'];
} & ({
glyph: IconGlyph;
glyphElement?: never;
} | {
glyph?: never;
glyphElement: ReactElement;
});
/**
* Icon that contains some glyph from {@link IconProps.glyph}.
*
* ```tsx
* import { Icon, IconGlyph } from "ui-kit";
*
* <Icon glyph={IconGlyph.Sms} />
* ```
* ### Available icons
*
* <Story id="components-icon--all-icons" />
*/
export declare const Icon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;