How to use the @iconify/iconify.iconExists function in @iconify/iconify

To help you get started, we’ve selected a few @iconify/iconify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iconify / iconify-figma / ui / src / components / iconify / parts / icon-long.jsx View on Github external
render() {
		let props = this.props,
			name = props.name,
			loaded = Iconify.iconExists(name),
			deleteButton = null;

		// Delete button
		if (props.view.type === 'custom' && props.view.canDelete) {
			deleteButton = (
				<a title="{lang.delete}" href="#">
					
				</a>
			);
		}
github iconify / iconify-figma / ui / src / components / iconify / parts / icon.jsx View on Github external
render() {
		let props = this.props,
			name = props.name,
			icon = props.icon,
			loaded = Iconify.iconExists(name);

		// Generate link and tooltip
		let link = props.config.links.icon
			.replace('{prefix}', icon.prefix)
			.replace('{name}', icon.name);

		if (!loaded) {
			return (
				
			);
github iconify / iconify-figma / ui / src / components / iconify / footer / footer.jsx View on Github external
render() {
		let app = this.props.app,
			iconName = app.options.iconName;

		// No icon selected - render SimpleFooter
		if (iconName === null) {
			return ;
		}

		// Check if icon has been loaded
		if (!Iconify.iconExists(iconName)) {
			Iconify.preloadImages([iconName]);
			if (!this._listener) {
				this._listener = this._onIconsLoaded.bind(this);
				document.addEventListener('IconifyAddedIcons', this._listener, true);
			}
			return ;
		}

		// Loaded
		return ;
	}
github iconify / iconify-figma / ui / plugin-ui.js View on Github external
counter => {
		// Do not delay for more than 1 second
		return counter > 10 || Iconify.iconExists('mdi:account-check');
	},
	() => {

@iconify/iconify

Unified SVG framework with over 100,000 icons to choose from

MIT
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis

Similar packages