UNPKG

@porsche-design-system/components-react

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

37 lines (36 loc) 1.72 kB
import type { BaseProps } from '../../BaseProps'; import type { TableHeadCellSort } from '../types'; export type PTableHeadCellProps = BaseProps & { /** * Hides the visible column label while keeping it accessible to screen readers. Only applies when `sort` is not set. * @default false */ hideLabel?: boolean; /** * Allows the column header text to wrap onto multiple lines instead of being truncated to a single line. * @default false */ multiline?: boolean; /** * Configures sorting behavior for this column by providing an `id`, `active` state, and current `direction` (`asc` or `desc`). */ sort?: TableHeadCellSort; }; export declare const PTableHeadCell: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & { /** * Hides the visible column label while keeping it accessible to screen readers. Only applies when `sort` is not set. * @default false */ hideLabel?: boolean; /** * Allows the column header text to wrap onto multiple lines instead of being truncated to a single line. * @default false */ multiline?: boolean; /** * Configures sorting behavior for this column by providing an `id`, `active` state, and current `direction` (`asc` or `desc`). */ sort?: TableHeadCellSort; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>;