import React from "react"; import { cx } from "../../utils/cx"; import type { IconProps } from "./types"; const MaterialIcon: React.FC = ({ name, fill = 0, opticalSize = "48dp", weight = "200", emphasis = 145, size = 24, color = "currentColor", style = {}, className, onClick, dataTestId, }) => { const fontVariationSettings = `'FILL' ${fill}, 'wght' ${weight}, 'GRAD' ${emphasis}, 'opsz' ${opticalSize.substring(0, 2)}`; const combinedStyle: React.CSSProperties = { fontVariationSettings, fontSize: `${size}px`, fontFamily: "'Material Symbols Rounded'", color: color || "currentColor", ...style, }; return ( {name} ); }; export { MaterialIcon }; MaterialIcon.displayName = "MaterialIcon"; export type { IconProps, IconName, Size } from "./types";