@carbon/react
Version:
React components for the Carbon Design System
32 lines (31 loc) • 1.13 kB
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { type HTMLAttributes } from 'react';
export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
/**
* Pass in children that will be embedded in the table header label
*/
children?: React.ReactNode;
/**
* Specify an optional className to be applied to the container node
*/
className?: string;
/**
* The width of the expanded row's internal cell
*/
colSpan?: number;
/**
* Specify if the table cell is in an AI column
*/
hasAILabelHeader?: boolean;
/**
* The id of the matching th node in the table head. Addresses a11y concerns outlined here: https://www.ibm.com/able/guidelines/ci162/info_and_relationships.html and https://www.w3.org/TR/WCAG20-TECHS/H43
*/
headers?: string;
}
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
export default TableCell;