Skip to content

Icon

The Icon component renders an SVG icon based on the provided name,size.

Icons reference icons.
The IconProperties extends <React.HTMLAttributes<HTMLElement> which means it includes all standard HTML attributes that can be applied to an HTML element.

PropTypeDescriptionOptional
nameToyotaIcon | LexusIconIcon name to display from the library
sizeSizeDefines the size of the icon
classNameClassValueCustom classNames you want to apply on the icon element
import { Icon } from '@tmedxp/react-components/atoms/icon';
const IconExample = () => {
return <Icon name="car" size="lg" className="custom_class" />;
};
export { IconExample };