/** * SvgIcon Component - Lynx 版 MUI SvgIcon * 一比一对应 MUI SvgIcon API * * 注意:由于 Lynx 不支持 SVG 元素,本组件使用以下替代方案: * - 使用 text 元素显示 emoji 或 Unicode 图标 * - 使用 image 元素加载图标图片 * - 提供 children 作为自定义内容 * * 支持的功能: * - fontSize: inherit, small, medium, large * - color: inherit, action, disabled, primary, secondary, error, info, success, warning */ import './SvgIcon.css'; export type SvgIconFontSize = 'inherit' | 'small' | 'medium' | 'large'; export type SvgIconColor = 'inherit' | 'action' | 'disabled' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning'; export interface SvgIconProps { /** 子元素 (图标内容,如 emoji 或文字) */ children?: any; /** 自定义类名 */ className?: string; /** 内联样式 */ style?: Record; /** 颜色 */ color?: SvgIconColor | string; /** 字体大小 */ fontSize?: SvgIconFontSize | string; /** HTML 颜色属性 */ htmlColor?: string; /** 是否继承 viewBox */ inheritViewBox?: boolean; /** viewBox */ viewBox?: string; /** 无障碍标题 */ titleAccess?: string; /** sx 属性 */ sx?: Record; /** 点击事件 */ bindtap?: () => void; } export declare const svgIconClasses: { root: string; colorPrimary: string; colorSecondary: string; colorAction: string; colorError: string; colorDisabled: string; fontSizeInherit: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; }; export declare function SvgIcon(props: SvgIconProps): JSX.Element; export declare namespace SvgIcon { var muiName: string; } export default SvgIcon; //# sourceMappingURL=index.d.ts.map