UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

19 lines (18 loc) 695 B
import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import classNames from "classnames"; import accessibleOnClick from "../../utils/accessibleOnClick.js"; /** * Table.Cell component (td element) * @visibleName Table.Cell */ const TableCell = /*#__PURE__*/ forwardRef(({ className, onClick, rightBorder, ...props }, ref)=>/*#__PURE__*/ _jsx("td", { className: classNames(className, { "bf-table-cell-clickable": onClick, "bf-table-cell-right-border": rightBorder }), ref: ref, ...props, ...accessibleOnClick(props, onClick) })); TableCell.displayName = "Table.Cell"; export default TableCell;