UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

40 lines (39 loc) 1.81 kB
import '@ui5/webcomponents/dist/TableHeaderRow.js'; import type { CommonProps, Ui5DomRef } from '@ui5/webcomponents-react-base'; import type { ReactNode } from 'react'; interface TableHeaderRowAttributes { /** * Sticks the `TableHeaderRow` to the top of a table. * * Note: If used in combination with overflowMode "Scroll", the table needs a defined height for the sticky header to work as expected. * @default false */ sticky?: boolean; } interface TableHeaderRowDomRef extends Required<TableHeaderRowAttributes>, Ui5DomRef { } interface TableHeaderRowPropTypes extends TableHeaderRowAttributes, Omit<CommonProps, keyof TableHeaderRowAttributes | 'children'> { /** * Defines the cells of the component. * * **Note:** Use `TableHeaderCell` for the intended design. * * __Supported Node Type/s:__ `Array<TableHeaderCell>` */ children?: ReactNode | ReactNode[]; } /** * The `TableHeaderRow` component represents the table headers of a `Table`. * * It is tightly coupled to the `Table` and should therefore be used in the `Table` only. * The header row is placed in the `headerRow` slot of the table. * * * * __Note:__ This is a UI5 Web Component! [TableHeaderRow UI5 Web Component Documentation](https://ui5.github.io/webcomponents/components/TableHeaderRow) | [Repository](https://github.com/UI5/webcomponents) * * @since [2.0.0](https://github.com/UI5/webcomponents/releases/tag/v2.0.0) of __@ui5/webcomponents__. */ declare const TableHeaderRow: import("react").ForwardRefExoticComponent<TableHeaderRowPropTypes & import("@ui5/webcomponents-react-base").WithWebComponentPropTypes & import("react").RefAttributes<TableHeaderRowDomRef>>; export { TableHeaderRow }; export type { TableHeaderRowDomRef, TableHeaderRowPropTypes };