TwebSVG
/** * @param {string} icon - Icon identifier/key. * @param {number} [size] - Icon size (default: 24). * @param {number} [stroke] - Icon stroke (default: 1.5). */
"testIcon": { "type": "string", "default": "map-pin-heart" },
import { TwebSVG, } from '@tigriweb/components/primitives';
<TwebSVG icon={ attributes.testIcon } size={ 24 } stroke={ 1.5 } />
Important: You Need to Enqueue Icons Globally!
Last updated 2 months ago