Comments (2)
I'm running into similar issues in the other direction. According to Axe ruleset's https://dequeuniversity.com/rules/axe/4.5/empty-table-header we shouldn't be using a th
in the header for a column without a heading. Should be td
. An example of this might be something like a favorite icon, actions menu, type etc.
from flowbite-react.
A quick cheat I used, you might be able to do the same until they give us an as
.
import { FC } from "react";
import { twMerge } from "tailwind-merge";
import { TableHeadCellProps as FlowbiteTableHeadCellProps, getTheme } from "flowbite-react";
export type TableHeadCellProps = FlowbiteTableHeadCellProps & {
as?: "td" | "th";
};
export const TableHeadCell: FC<TableHeadCellProps> = ({ as = "th", ...props }) => {
const tableTheme = getTheme().table;
const Element = as;
return <Element {...props} className={twMerge(tableTheme.head.cell.base, props.className)} />;
};
<Table.Head>
<TableHeadCell as="td" className="px-0 group-first/head:first:rounded-none" />
<Table.HeadCell className="min-w-48 pl-2">{t("projects.about.name")}</Table.HeadCell>
from flowbite-react.
Related Issues (20)
- react-icons v5 (required by ui/package.json) is not type compatible with icon prop in components like Alert HOT 1
- Toggle switch UI not showing properly. HOT 8
- Select a Month, Year Change is not working.
- <Modal.Overlay> || <Modal.Base>
- Datepicker is not allowing clearing date
- Some component (at least my spinner and button) are broken after upgrade to 0.9.0 and 0.8.0 from 0.7.3 HOT 1
- Avatar should render dummy svg when provided with render function
- Text from date picker coverd by icon? Missing styling HOT 1
- Flowbite button does not have attribute download HOT 5
- Datepicker update value
- ERR_MODULE_NOT_FOUND: Cannot find module flowbite/plugin HOT 1
- Date Picker Auto Hide
- Sidebar couldn't redesign its shape HOT 1
- Module '"flowbite-react"' has no exported member 'Drawer'. HOT 2
- Allow Datepicker to be empty
- Tabs SSR not working HOT 3
- customTheme break Carousel down
- Incompatible icons for icon={} props HOT 7
- flowbite style css not found HOT 1
- Dropdown.Item - MouseEvent<HTMLElement> is not passed through onclick
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowbite-react.