@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
19 lines (18 loc) • 756 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 StyledButtonLabel = (0, common_1.styled)(layout_1.Box.as('span'))({
position: 'relative',
textOverflow: 'ellipsis',
overflow: 'hidden',
whiteSpace: 'nowrap',
});
exports.ButtonLabel = (0, common_1.createComponent)('span')({
displayName: 'ButtonLabel',
Component: ({ children, ...elemProps }, ref, Element) => {
return ((0, jsx_runtime_1.jsx)(StyledButtonLabel, { as: Element, ref: ref, ...elemProps, children: children }));
},
});