UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

15 lines (14 loc) 776 B
import React from 'react'; import { mergeStyles } from '@workday/canvas-kit-react/layout'; import { createComponent } from '@workday/canvas-kit-react/common'; import { createStencil } from '@workday/canvas-kit-styling'; import { system } from '@workday/canvas-tokens-web'; export const baseTableCaptionStencil = createStencil({ base: { name: "d5h45r", styles: "box-sizing:border-box;padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);" } }, "base-table-caption-6381da"); export const BaseTableCaption = createComponent('caption')({ displayName: 'Table.Caption', Component: ({ children, ...elemProps }, ref, Element) => { return (React.createElement(Element, { ref: ref, ...mergeStyles(elemProps, baseTableCaptionStencil()) }, children)); }, });