UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

15 lines (14 loc) 793 B
import { jsx as _jsx } from "react/jsx-runtime"; 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: "2sucgs", styles: "box-sizing:border-box;padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);" } }, "base-table-caption-7b2391"); export const BaseTableCaption = createComponent('caption')({ displayName: 'Table.Caption', Component: ({ children, ...elemProps }, ref, Element) => { return (_jsx(Element, { ref: ref, ...mergeStyles(elemProps, baseTableCaptionStencil()), children: children })); }, });