UNPKG

vuikit

Version:

A Vuejs component library based on UIkit

31 lines (26 loc) 538 B
/** * Vuikit 0.7.0 * (c) 2018 Miljan Aleksic * @license MIT */ import VkIcon from './icon' import mergeData from 'vuikit/core/helpers/vue-data-merge' export default { functional: true, props: mergeData(VkIcon.props, { reset: { type: Boolean, default: false } }), render: (h, { data, props, children }) => h('a', mergeData(data, { class: ['uk-icon', { 'uk-icon-link': props.reset }] }), [ props.name ? h(`icon-${props.name}`, { props }) : children ]) }