carbon-react
Version:
A library of reusable React components for easily building user interfaces.
15 lines (14 loc) • 692 B
TypeScript
import React from "react";
import { TagProps } from "../../../__internal__/utils/helpers/tags";
export interface SortProps extends TagProps {
/** if `asc` it will show `sort_up` icon, if `desc` it will show `sort_down` */
sortType?: "ascending" | "descending";
/** Callback fired when the component is clicked */
onClick?: () => void;
/** Sets the text content of the component */
children?: string;
/** Sets the accessible name of the component */
accessibleName?: string;
}
export declare const Sort: ({ children, onClick, sortType, accessibleName, "data-element": dataElement, "data-role": dataRole, }: SortProps) => React.JSX.Element;
export default Sort;