UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

44 lines 2.01 kB
export declare const useInformationHighlightModel: (<TT_Special_Generic>(config?: (Partial<{ variant: "caution" | "default" | "critical" | "informational"; emphasis: "high" | "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" | "end"; }> & {} & {}) | undefined) => { state: { variant: "caution" | "default" | "critical" | "informational"; emphasis: "high" | "low"; actionPlacement: "bottom" | "end"; }; events: {}; }) & import("@workday/canvas-kit-react/common").ModelExtras<{ variant: "caution" | "default" | "critical" | "informational"; emphasis: "high" | "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" | "end"; }, {}, { variant: "caution" | "default" | "critical" | "informational"; emphasis: "high" | "low"; actionPlacement: "bottom" | "end"; }, {}, { state: { variant: "caution" | "default" | "critical" | "informational"; emphasis: "high" | "low"; actionPlacement: "bottom" | "end"; }; events: {}; }>; //# sourceMappingURL=useInformationHighlightModel.d.ts.map