import Component from './Component.jsx'; export default class Mdi extends Component { view(vnode) { this.attrs.addClassNames('mdi', `mdi-${vnode.attrs.icon}`); return ; } } /** Quando MWC supporterà pienamente le icone SVG si potrà fare così: import * as mdi from '@mdi/js'; import {camelCase} from 'lodash/string'; return ; @see https://github.com/material-components/material-web/issues/1812 */