UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

8 lines 1.16 kB
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; import { TDStyled } from './tableCell.styled'; const TableCellStandAloneComponent = ({ dataTestId = 'table-cell', children, styles, id, scope, th, colSpan, rowSpan, height, width, minWidth, maxWidth, textAlign, top, left, right, bottom, sticky, hidden, component, onClick, onMouseEnter, onMouseLeave, ...props }, ref) => { return (_jsx(TDStyled, { ref: ref, "$bottom": bottom, "$height": height, "$left": left, "$maxWidth": maxWidth, "$minWidth": minWidth, "$right": right, "$styles": styles, "$textAlign": textAlign, "$top": top, "$width": width, "aria-label": props['aria-label'], "aria-labelledby": props['aria-labelledby'], as: component ? component : th ? 'th' : 'td', colSpan: colSpan, "data-hidden": hidden, "data-sticky": sticky, "data-testid": dataTestId, id: id, rowSpan: rowSpan, scope: scope, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: hidden ? _jsx("div", { children: children }) : children })); }; export const TableCellStandAlone = React.forwardRef(TableCellStandAloneComponent); //# sourceMappingURL=tableCellStandAlone.js.map