import { jsx as _jsx } from "react/jsx-runtime";
import { useStyleConfig, vui } from '../core';
import Icon from '../icon';
import { cs } from '../utils';
import { useTagContext } from './context';
/** Displays an icon within the Tag. */
export const TagIcon = vui((props, ref) => {
    const { className, ...rest } = props;
    const styles = useStyleConfig('Tag', useTagContext());
    return _jsx(Icon, { className: cs('vui-tagIcon', className), ref: ref, ...styles.icon, ...rest });
});
TagIcon.displayName = 'TagIcon';
export default TagIcon;
//# sourceMappingURL=tagIcon.js.map