UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

14 lines (13 loc) 840 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'; export const baseTableBodyStencil = createStencil({ base: { name: "27uy19", styles: "box-sizing:border-box;tr {&:last-of-type{td, th{border-bottom:none;}}&:first-of-type{td, th{border-top:none;}}}td {&:last-of-type{border-inline-end:none;}&:first-of-type{border-inline-start:none;}}" } }, "base-table-body-61227f"); export const BaseTableBody = createComponent('tbody')({ displayName: 'Table.Body', Component: ({ children, ...elemProps }, ref, Element) => { return (_jsx(Element, { ref: ref, ...mergeStyles(elemProps, baseTableBodyStencil()), children: children })); }, });