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

12 lines (11 loc) 482 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useExpandableContent = void 0; const common_1 = require("@workday/canvas-kit-react/common"); const useExpandableModel_1 = require("./useExpandableModel"); exports.useExpandableContent = (0, common_1.createElemPropsHook)(useExpandableModel_1.useExpandableModel)(({ state }) => { return { style: state.visibility !== 'hidden' ? {} : { display: 'none' }, id: state.id, }; });