UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

13 lines (12 loc) 614 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createComponent } from '@workday/canvas-kit-react/common'; import { createStencil, handleCsProp } from '@workday/canvas-kit-styling'; export const avatarImageStencil = createStencil({ base: { name: "464qdq", styles: "box-sizing:border-box;height:100%;width:100%;object-fit:cover;" } }, "avatar-image-e0bffc"); export const AvatarImage = createComponent('img')({ displayName: 'AvatarImage', Component: ({ ...elemProps }, ref, Element) => { return _jsx(Element, { ref: ref, ...handleCsProp(elemProps, avatarImageStencil()) }); }, });