UNPKG

@workday/canvas-kit-labs-react

Version:

Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functi

11 lines (10 loc) 429 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useExpandableIcon = void 0; const common_1 = require("@workday/canvas-kit-react/common"); const useExpandableModel_1 = require("./useExpandableModel"); exports.useExpandableIcon = (0, common_1.createElemPropsHook)(useExpandableModel_1.useExpandableModel)(({ state }) => { return { visible: state.visibility !== 'hidden', }; });