UNPKG

carbon-custom-elements

Version:

A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.

38 lines (33 loc) 942 B
/** * @license * * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { Component } from 'react'; interface ComponentProps { /** * `true` if this table header cell is of a primary sorting column. */ sortActive?: boolean; /** * The table sort cycle in use. */ sortCycle?: string; /** * The table sort direction. * If present, this table header cell will have a sorting UI. */ sortDirection?: string; } /** * Data table header cell. * @element bx-table-header-cell * @fires bx-table-header-cell-sort * The custom event fired before a new sort direction is set upon a user gesture. * Cancellation of this event stops the user-initiated change in sort direction. */ declare class BXTableHeaderCell extends Component<ComponentProps> {} export default BXTableHeaderCell;