SvgIcon API
View componentThe full prop reference for the SvgIcon component. A wrapper for custom SVG icons.
Import
tsx
import { SvgIcon } from '@structyl/styled';Props
SvgIcon
Current-color SVG wrapper.
| Prop | Type | Default |
|---|---|---|
| title# | stringAccessible SVG title. | — |
| titleAccess# | stringMUI-style alias for title. | — |
| fontSize# | 'inherit' | 'small' | 'medium' | 'large'Icon size. | 'medium' |
| color# | 'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'Tokenized icon color. | 'inherit' |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .