@ant-design/icons-vue
Version:
Ant Design Icons for Vue
13 lines • 388 B
JavaScript
import { inject, provide, ref } from 'vue';
var contextKey = Symbol('iconContext');
export var useProvideIconContext = function useProvideIconContext(props) {
provide(contextKey, props);
return props;
};
export var useInjectIconContext = function useInjectIconContext() {
return inject(contextKey, {
prefixCls: ref('anticon'),
rootClassName: ref(''),
csp: ref()
});
};