UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

11 lines (10 loc) 527 B
'use client'; import { twMerge } from '@vertisanpro/tailwind-merge'; import React from 'react'; import { mergeDeep } from '../../helpers/merge-deep'; import { useTableHeadContext } from './TableHeadContext'; export const TableHeadCell = ({ children, className, theme: customTheme = {}, ...props }) => { const { theme: headTheme } = useTableHeadContext(); const theme = mergeDeep(headTheme.cell, customTheme); return (React.createElement("th", { className: twMerge(theme.base, className), ...props }, children)); };