@olleemilsson/flowbite-react
Version:
<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <
10 lines (9 loc) • 527 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import classNames from 'classnames';
import { useTheme } from '../Flowbite';
import { useTableContext } from './TableContext';
export const TableRow = ({ children, className, ...props }) => {
const theme = useTheme().theme.table.row;
const { striped, hoverable } = useTableContext();
return (_jsx("tr", { "data-testid": "table-row-element", className: classNames(striped && theme.striped, hoverable && theme.hovered, className), ...props, children: children }));
};