Icon
Description
Section titled “Description”The Icon component renders an SVG icon based on the provided name,size.
Component
Section titled “Component”Properties
Section titled “Properties”The IconProperties extends <React.HTMLAttributes<HTMLElement> which means it includes all standard HTML attributes that can be applied to an HTML element.
| Prop | Type | Description | Optional |
|---|---|---|---|
name | ToyotaIcon | LexusIcon | Icon name to display from the library | ❌ |
size | Size | Defines the size of the icon | ✅ |
className | ClassValue | Custom classNames you want to apply on the icon element | ✅ |
Example
Section titled “Example”import { Icon } from '@tmedxp/react-components';
const IconExample = () => { return <Icon name="car" size="lg" className="custom_class" />;};
export { IconExample };