import { jsx as _jsx } from "react/jsx-runtime";
import { useStyleConfig, vui } from '../core';
import T from '../t';
import { cs } from '../utils';
import { useTagContext } from './context';
/** Displays text within the Tag. */
export const TagText = vui((props, ref) => {
    const { className, ...rest } = props;
    const styles = useStyleConfig('Tag', useTagContext());
    return _jsx(T, { className: cs('vui-tagText', className), fontSize: "inherit", ref: ref, ...styles.text, ...rest });
});
TagText.displayName = 'TagText';
export default TagText;
//# sourceMappingURL=tagText.js.map