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.

26 lines (24 loc) 777 B
import { cs } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { Icon } from "../icon/icon.js"; import { useTreeContext } from "./context.js"; import { jsx } from "react/jsx-runtime"; //#region src/tree/treeIcon.tsx /** Displays an icon on the side of the TreeItem. */ const TreeIcon = vui((props, ref) => { const { className, ...rest } = props; const styles = useStyleConfig("Tree", useTreeContext()); return /* @__PURE__ */ jsx(Icon, { className: cs("vui-treeIcon", className), ref, size: "xs", ...styles.icon, ...rest }); }); TreeIcon.displayName = "TreeIcon"; //#endregion export { TreeIcon, TreeIcon as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=treeIcon.js.map