@helpwave/hightide
Version:
helpwave's component and theming library
16 lines (13 loc) • 602 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { TextButtonProps } from './Button.mjs';
import { TableSortingType } from './Table.mjs';
import 'react';
type SortButtonProps = Omit<TextButtonProps, 'onClick'> & {
ascending?: TableSortingType;
onClick: (newTableSorting: TableSortingType) => void;
};
/**
* A Extension of the normal button that displays the sorting state right of the content
*/
declare const SortButton: ({ children, ascending, color, onClick, ...buttonProps }: SortButtonProps) => react_jsx_runtime.JSX.Element;
export { SortButton, type SortButtonProps };