@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
56 lines (55 loc) • 2.07 kB
TypeScript
import '@ui5/webcomponents/dist/TableHeaderCell.js';
import type { ReactNode } from 'react';
import type { CommonProps, Ui5DomRef } from '../../types/index.js';
interface TableHeaderCellAttributes {
/**
* Defines the importance of the column.
*
* This property affects the popin behaviour.
* Columns with higher importance will move into the popin area later then less important
* columns.
* @default 0
*/
importance?: number;
/**
* Defines the maximum width of the column.
* @default "auto"
*/
maxWidth?: string;
/**
* Defines the minimum width of the column.
*
* If the table is in `Popin` mode, the column will move into the popin when
* when the minimum width does not fit anymore.
* @default "auto"
*/
minWidth?: string;
/**
* Defines the width of column.
* @default "auto"
*/
width?: string;
}
interface TableHeaderCellDomRef extends Required<TableHeaderCellAttributes>, Ui5DomRef {
}
interface TableHeaderCellPropTypes extends TableHeaderCellAttributes, Omit<CommonProps, keyof TableHeaderCellAttributes | 'children'> {
/**
* Defines the content of the component.
*/
children?: ReactNode | ReactNode[];
}
/**
* The `TableHeaderCell` component represents a column in the `Table`.
*
* As it is tightly coupled to the `Table`, it should only be used in the `TableHeaderRow`
* to ensure correct layout and design.
*
*
*
* __Note__: This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/)
*
* @since [2.0.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v2.0.0) of __@ui5/webcomponents__.
*/
declare const TableHeaderCell: import("react").ForwardRefExoticComponent<TableHeaderCellPropTypes & import("../../internal/withWebComponent.js").WithWebComponentPropTypes & import("react").RefAttributes<TableHeaderCellDomRef>>;
export { TableHeaderCell };
export type { TableHeaderCellDomRef, TableHeaderCellPropTypes };