21 lines
776 B
TypeScript
21 lines
776 B
TypeScript
import * as React from 'react';
|
|
import type { FluentIconsProps } from './shared';
|
|
export declare type FluentIcon = React.FC<FluentIconsProps>;
|
|
export declare type CreateFluentIconOptions = {
|
|
flipInRtl?: boolean;
|
|
color?: boolean;
|
|
};
|
|
/**
|
|
* Base createFluentIcon — SVG icon factory without Styles.
|
|
*
|
|
* Returns a React component that renders an SVG icon with:
|
|
* - data-fui-icon attribute for CSS targeting
|
|
* - a11y attributes (aria-hidden, aria-label, role)
|
|
* - RTL flip via data-fui-icon-rtl attribute
|
|
* - HCM forced-color-adjust via CSS attribute selector
|
|
*
|
|
* @access private
|
|
* @alpha
|
|
*/
|
|
export declare const createFluentIcon: (displayName: string, width: string, pathsOrSvg: string[] | string, options?: CreateFluentIconOptions | undefined) => FluentIcon;
|