UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

14 lines (13 loc) 823 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'; export const baseTableBodyStencil = createStencil({ base: { name: "d5h45o", 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-130b94"); export const BaseTableBody = createComponent('tbody')({ displayName: 'Table.Body', Component: ({ children, ...elemProps }, ref, Element) => { return (React.createElement(Element, { ref: ref, ...mergeStyles(elemProps, baseTableBodyStencil()) }, children)); }, });