UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

15 lines (14 loc) 496 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.usePopupCard = void 0; const common_1 = require("@workday/canvas-kit-react/common"); const usePopupModel_1 = require("./usePopupModel"); /** * Adds the necessary props to a {@link PopupCard Popup.Card} subcomponent. */ exports.usePopupCard = (0, common_1.createElemPropsHook)(usePopupModel_1.usePopupModel)(({ state }) => { return { role: 'dialog', 'aria-labelledby': state.id, }; });