UNPKG

vuikit

Version:

A Vuejs component library based on UIkit

30 lines (25 loc) 535 B
/** * Vuikit 0.7.0 * (c) 2018 Miljan Aleksic * @license MIT */ import mergeData from 'vuikit/core/helpers/vue-data-merge' export default { functional: true, props: { name: { type: String, default: '' }, viewBox: String, ratio: [String, Number], width: [String, Number], height: [String, Number] }, render: (h, { data, props, children }) => h('span', mergeData(data, { class: ['uk-icon'] }), [ props.name ? h(`icon-${props.name}`, { props }) : children ]) }