Methods
BrandIcon(props) → {JSX.Element|null}
- Description:
- BrandIcon renders an SVG icon from the simple-icons set or custom SVG data.
- Source:
Parameters:
Name |
Type |
Description |
props |
object
|
Component props.
Properties
Name |
Type |
Attributes |
Default |
Description |
icon |
object
|
|
|
Icon object containing `svg` string. |
color |
string
|
|
|
Fill color for the SVG. |
className |
string
|
<optional>
|
|
Additional CSS classes. |
size |
number
|
<optional>
|
24
|
Width and height of the icon. |
|
Returns:
SVG element or null if no valid icon.
-
Type
-
JSX.Element
|
null