UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

9 lines (8 loc) 452 B
import { jsx as _jsx } from "react/jsx-runtime"; import { twMerge } from 'tailwind-merge'; import { useTheme } from '../../'; import { mergeDeep } from '../../helpers/merge-deep'; export const TableCell = ({ children, className, theme: customTheme = {}, ...props }) => { const theme = mergeDeep(useTheme().theme.table.body.cell, customTheme); return (_jsx("td", { className: twMerge(theme.base, className), ...props, children: children })); };