UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

15 lines (14 loc) 749 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createComponent } from '@workday/canvas-kit-react/common'; import { Popup } from '@workday/canvas-kit-react/popup'; import { createStencil } from '@workday/canvas-kit-styling'; import { mergeStyles } from '@workday/canvas-kit-react/layout'; export const toastCloseIconStencil = createStencil({ base: { name: "2zqux0", styles: "box-sizing:border-box;position:relative;" } }, "toast-close-icon-f7cf19"); export const ToastCloseIcon = createComponent('button')({ displayName: 'Toast.CloseIcon', Component: (elemProps, ref, Element) => { return (_jsx(Popup.CloseIcon, { as: Element, ref: ref, size: "small", ...mergeStyles(elemProps, toastCloseIconStencil()) })); }, });