@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
18 lines (17 loc) • 835 B
TypeScript
import React from "react";
import { TableCell as CarbonTableCell } from "@carbon/react";
type CarbonTableCellProps = React.ComponentProps<typeof CarbonTableCell>;
export interface TableCellProps extends CarbonTableCellProps, React.TdHTMLAttributes<HTMLTableCellElement> {
/**
* By default all table cell content is aligned to the left of the cell.
* Use this property to change the horizontal alignment.
*/
alignHorizontal?: "left" | "center";
/**
* By default all table cell content is aligned to the top of the cell.
* Use this property to change the vertical alignment.
*/
alignVertical?: "top" | "middle";
}
export declare function TableCell({ className, children, alignHorizontal, alignVertical, ...otherTableCellProps }: TableCellProps): React.JSX.Element;
export default TableCell;