UNPKG

@zohodesk/components

Version:

Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development

14 lines 306 B
import { useZIndex } from "../../Provider/ZindexProvider"; export default function cssJSLogic(props) { const { isActive, needAutoZindex } = props; const zIndex = useZIndex(); const zIndexStyle = isActive && needAutoZindex ? { zIndex: zIndex() } : {}; return { zIndexStyle }; }