@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
10 lines (9 loc) • 445 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { createComponent } from '@workday/canvas-kit-react/common';
import { Hyperlink } from '@workday/canvas-kit-react/button';
export const ToastLink = createComponent('a')({
displayName: 'Toast.Link',
Component: ({ children, href, ...elemProps }, ref, Element) => {
return (_jsx(Hyperlink, { ref: ref, href: href, as: Element, ...elemProps, children: children }));
},
});