@hashicorp/design-system-components
Version:
Helios Design System Components
30 lines (29 loc) • 1.09 kB
TypeScript
/**
* Copyright IBM Corp. 2021, 2025
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component';
import { HdsTableHorizontalAlignmentValues } from './types.ts';
import type { HdsTableHorizontalAlignment, HdsTableThSortOrder, HdsTableThSortOrderLabels } from './types.ts';
import type { HdsTableThButtonSortSignature } from './th-button-sort';
export declare const ALIGNMENTS: HdsTableHorizontalAlignment[];
export declare const DEFAULT_ALIGN = HdsTableHorizontalAlignmentValues.Left;
export interface HdsTableThSortSignature {
Args: {
align?: HdsTableHorizontalAlignment;
onClickSort?: HdsTableThButtonSortSignature['Args']['onClick'];
sortOrder?: HdsTableThSortOrder;
tooltip?: string;
width?: string;
};
Blocks: {
default: [];
};
Element: HTMLTableCellElement;
}
export default class HdsTableThSort extends Component<HdsTableThSortSignature> {
private _labelId;
get ariaSort(): HdsTableThSortOrderLabels;
get align(): HdsTableHorizontalAlignment;
get classNames(): string;
}