UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

28 lines (26 loc) 826 B
import { cs, ellipsisOverflow } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { T } from "../t/t.js"; import { useTreeContext } from "./context.js"; import { jsx } from "react/jsx-runtime"; //#region src/tree/treeText.tsx /** Displays text within the TreeItem. */ const TreeText = vui((props, ref) => { const { className, ...rest } = props; const styles = useStyleConfig("Tree", useTreeContext()); return /* @__PURE__ */ jsx(T, { className: cs("vui-treeText", className), fontSize: "inherit", py: styles.item.py, ref, ...ellipsisOverflow, ...styles.text, ...rest }); }); TreeText.displayName = "TreeText"; //#endregion export { TreeText, TreeText as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=treeText.js.map