@carbon/react
Version:
React components for the Carbon Design System
21 lines (19 loc) • 557 B
JavaScript
/**
* Copyright IBM Corp. 2016, 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
//#region src/components/DataTable/state/sortStates.ts
/**
* We currently support the following sorting states for DataTable headers,
* namely: `NONE` for no sorting being applied, and then `DESC` and `ASC` for
* the corresponding direction of the sorting order.
*/
const sortStates = {
NONE: "NONE",
DESC: "DESC",
ASC: "ASC"
};
//#endregion
exports.sortStates = sortStates;