UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

11 lines (10 loc) 559 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createStyles, handleCsProp } from '@workday/canvas-kit-styling'; import { createComponent } from './utils'; const ellipsisStyles = createStyles({ name: "4ehrff", styles: "white-space:nowrap;text-overflow:ellipsis;overflow:hidden;" }); export const EllipsisText = createComponent('span')({ displayName: 'EllipsisText', Component({ children, ...elemProps }, ref, Element) { return (_jsx(Element, { ref: ref, ...handleCsProp(elemProps, ellipsisStyles), children: children })); }, });