UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

15 lines (14 loc) 742 B
import React from 'react'; 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: "d5h466", styles: "box-sizing:border-box;position:relative;" } }, "toast-close-icon-be7e9f"); export const ToastCloseIcon = createComponent('button')({ displayName: 'Toast.CloseIcon', Component: (elemProps, ref, Element) => { return (React.createElement(Popup.CloseIcon, { as: Element, ref: ref, size: "small", ...mergeStyles(elemProps, toastCloseIconStencil()) })); }, });