UNPKG

reablocks

Version:
48 lines (46 loc) 1.12 kB
import { SortTheme } from './SortTheme'; import { SortDirection } from './utils'; import { default as React, FC, PropsWithChildren } from 'react'; export interface SortProps extends PropsWithChildren { /** * Additional css classnames to apply */ className?: string; /** * Additional css classnames to apply to the icon */ iconClassName?: string; /** * Whether the sort is disabled */ disabled?: boolean; /** * The current sort direction */ direction?: SortDirection; /** * The callback to call when the sort is toggled */ onSort?: (direction: SortDirection) => void; /** * The icon to display */ icon?: React.ComponentType<{ className?: string; }>; /** * The neutral icon to display. */ neutralIcon?: React.ComponentType<{ className?: string; }>; /** * Additional css classnames to apply to the neutral icon. */ neutralIconClassName?: string; /** * Theme for the Sort. */ theme?: SortTheme; } export declare const Sort: FC<SortProps>;