UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

16 lines (15 loc) 828 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AvatarImage = exports.avatarImageStencil = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const common_1 = require("@workday/canvas-kit-react/common"); const canvas_kit_styling_1 = require("@workday/canvas-kit-styling"); exports.avatarImageStencil = (0, canvas_kit_styling_1.createStencil)({ base: { name: "464qdq", styles: "box-sizing:border-box;height:100%;width:100%;object-fit:cover;" } }, "avatar-image-e0bffc"); exports.AvatarImage = (0, common_1.createComponent)('img')({ displayName: 'AvatarImage', Component: ({ ...elemProps }, ref, Element) => { return (0, jsx_runtime_1.jsx)(Element, { ref: ref, ...(0, canvas_kit_styling_1.handleCsProp)(elemProps, (0, exports.avatarImageStencil)()) }); }, });