@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
15 lines (14 loc) • 869 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ButtonLabel = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const common_1 = require("@workday/canvas-kit-react/common");
const layout_1 = require("@workday/canvas-kit-react/layout");
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
const buttonLabelStyles = (0, canvas_kit_styling_1.createStyles)({ name: "28r73b", styles: "position:relative;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;" });
exports.ButtonLabel = (0, common_1.createComponent)('span')({
displayName: 'ButtonLabel',
Component: ({ children, ...elemProps }, ref, Element) => {
return ((0, jsx_runtime_1.jsx)(layout_1.Box, { as: Element, ref: ref, ...(0, canvas_kit_styling_1.handleCsProp)(elemProps, buttonLabelStyles), children: children }));
},
});