@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
12 lines (11 loc) • 676 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { createComponent } from '@workday/canvas-kit-react/common';
import { Box } from '@workday/canvas-kit-react/layout';
import { createStyles, handleCsProp } from '@workday/canvas-kit-styling';
const buttonLabelStyles = createStyles({ name: "28r73b", styles: "position:relative;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;" });
export const ButtonLabel = createComponent('span')({
displayName: 'ButtonLabel',
Component: ({ children, ...elemProps }, ref, Element) => {
return (_jsx(Box, { as: Element, ref: ref, ...handleCsProp(elemProps, buttonLabelStyles), children: children }));
},
});