跳转到主要内容

icon-exists

title: 'Iconify for Ember Function: iconExists'
functions:
  getIcon: './get-icon.md'
  loadIcons: './load-icons.md'

Iconify for Ember function: iconExists

This tutorial is part of Iconify for Ember functions tutorial.

include icon-components/functions/icon-exists/intro

Usage

include icon-components/functions/icon-exists/props

Example

import { iconExists } from '@iconify/ember/components/iconify-icon';

const icon = 'bi:arrow-left';
console.log(`Is ${icon} available?`, iconExists(icon) ? 'yes' : 'no');