@atlaskit/icon
Version:
An icon is a symbol representing a command, device, directory, or common action.
12 lines (11 loc) • 723 B
TypeScript
import React from 'react';
import type { IconFacadeProps } from '../types';
/**
* `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
*
* @param {IconFacadeProps} props - The props for the IconFacade component. Includes properties for configuring
* the icon such as `size`, `spacing`, `primaryColor`, `iconType`, and potentially others depending on the icon.
* `dangerouslySetGlyph` is a prop specific to the legacy icon component for setting the icon glyph directly.
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
*/
export declare const IconFacade: React.NamedExoticComponent<IconFacadeProps>;