@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
14 lines (13 loc) • 748 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { createComponent } from '@workday/canvas-kit-react/common';
import { Flex, mergeStyles } from '@workday/canvas-kit-react/layout';
import { createStencil } from '@workday/canvas-kit-styling';
export const toastBodyStencil = createStencil({
base: { name: "1fqoyq", styles: "box-sizing:border-box;align-items:flex-start;flex-direction:column;justify-content:center;flex-grow:1;gap:0;" }
}, "toast-body-36e90e");
export const ToastBody = createComponent('div')({
displayName: 'Toast.Body',
Component: ({ children, ...elemProps }, ref, Element) => {
return (_jsx(Flex, { ref: ref, as: Element, ...mergeStyles(elemProps, toastBodyStencil()), children: children }));
},
});