@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
29 lines (28 loc) • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useInformationHighlightModel = void 0;
const common_1 = require("@workday/canvas-kit-react/common");
exports.useInformationHighlightModel = (0, common_1.createModelHook)({
defaultConfig: {
variant: 'default',
emphasis: 'low',
/**
* Controls where `InformationHighlight.Link` is placed relative to heading and body.
* - `bottom` (default): link stacks below heading and body.
* - `end`: link is visually placed at the inline end beside content when the container is wide
* enough; in narrower containers it stacks below the body. Placement uses CSS Grid
* only—DOM, keyboard tab order, and screen reader order remain heading, body, then link.
* @default 'bottom'
*/
actionPlacement: 'bottom',
},
})(config => {
return {
state: {
variant: config.variant,
emphasis: config.emphasis,
actionPlacement: config.actionPlacement,
},
events: {},
};
});