UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

9 lines (8 loc) 608 B
import * as React from 'react'; import { createComponent } from '@workday/canvas-kit-react/common'; import { borderRadius, colors } from '@workday/canvas-kit-react/tokens'; import { SkeletonShape } from './skeletonShape'; export const SkeletonHeader = createComponent('div')({ displayName: 'Skeleton.Header', Component: ({ backgroundColor = colors.soap200, height = '28px', width = '100%', ...elemProps }, ref, Element) => (React.createElement(SkeletonShape, { ref: ref, as: Element, backgroundColor: backgroundColor, borderRadius: borderRadius.s, height: height, width: width, ...elemProps })), });